﻿html,
body {
    margin: 0;
    min-height: 100%;
    background-color: #f3f3f3 !important;
}

body,
#s4-workspace,
#aspnetForm {
    min-height: 100% !important;
    background: url('/_layouts/15/NewInternalPortal/img/nafath/Amanahback3.png') center center / cover no-repeat !important;
    background-color: #f3f3f3 !important;
}

#s4-workspace,
#s4-bodyContainer,
#aspnetForm {
    height: auto !important;
    min-height: 100% !important;
    overflow: visible !important;
}

#s4-bodyContainer,
#contentBox,
.ms-core-defaultFont {
    background: transparent !important;
}

.main-content {
    flex: 1;
    padding-right: 15px;
    overflow: visible !important;
}

.right-sidebar {
    display: none !important;
}

.page-content-area {
    width: 100%;
    padding: 15px;
    box-sizing: border-box;
}

.nafath-bg-overlay {
    position: fixed;
    inset: 0;
    background: rgba(243, 243, 243, 0.20);
    z-index: 0;
    pointer-events: none;
}

.nafath-wrapper,
.nafath-card {
    position: relative;
    z-index: 1;
}

.nafath-wrapper {
    min-height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 32px 16px;
    box-sizing: border-box;
}

.nafath-card {
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    padding: 36px 32px;
    box-sizing: border-box;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.10);
    text-align: center;
    font-family: inherit;
    animation: fadeIn 0.5s ease;
}

.logo-top img {
    width: 150px;
    max-width: 100%;
    height: auto;
    margin-bottom: 14px;
    display: inline-block;
}

.title {
    margin: 0 0 6px 0;
    color: #0d6c7d;
    font-size: 25px;
    /* font-weight: 800; */
    /* line-height: 1.5; */
}


.welcome {
    /* margin: 0 0 8px 0;*/
    color: #178893;
    font-size: 22px;
    /* font-weight: 800; */
    line-height: 1.4;
}

.desc {
    margin: 0 0 24px 0;
    color: #666;
    font-size: 17px;
    line-height: 1.8;
}

.success-box {
    margin-bottom: 25px;
}

.code-box {
    width: 80px;
    height: 80px;
    margin: 0 auto 10px auto;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #e7f6ee;
    color: #1c9c6d;
    border: 2px solid #1c9c6d;
    border-radius: 12px;
    font-size: 30px;
    font-weight: 700;
}

.note {
    color: #444;
    font-size: 15px;
    line-height: 1.7;
}

.form-area {
    width: 100%;
    margin-bottom: 18px;
    text-align: right;
}

    .form-area label {
        display: block;
        margin-bottom: 10px;
        color: #333;
        font-size: 17px;
        font-weight: 700;
        text-align: right;
        line-height: 1.6;
    }

    .form-area .form-control,
    input.form-control,
    input[type="text"].form-control,
    input[type="tel"].form-control,
    textarea.form-control {
        display: block;
        width: 100% !important;
        height: 56px;
        margin: 0 0 14px 0;
        padding: 0 18px;
        box-sizing: border-box;
        background: #ffffff;
        color: #222;
        border: 1px solid #d7dbe0 !important;
        border-radius: 12px;
        box-shadow: none !important;
        font-size: 18px;
        line-height: normal;
        outline: none;
        -webkit-appearance: none;
        appearance: none;
    }

        .form-area .form-control::placeholder,
        input.form-control::placeholder,
        input[type="text"].form-control::placeholder,
        input[type="tel"].form-control::placeholder {
            color: #9aa3ad;
            opacity: 1;
        }

        .form-area .form-control:focus,
        input.form-control:focus,
        input[type="text"].form-control:focus,
        input[type="tel"].form-control:focus,
        textarea.form-control:focus {
            border-color: #178893 !important;
            box-shadow: 0 0 0 4px rgba(23, 136, 147, 0.10) !important;
            outline: none !important;
        }

.login-btn,
input[type="submit"].login-btn,
input[type="button"].login-btn {
    display: block;
    width: 100% !important;
    height: 56px;
    margin: 0;
    padding: 0 18px;
    box-sizing: border-box;
    background: #178893 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 12px;
    box-shadow: 0 8px 18px rgba(23, 136, 147, 0.18);
    font-size: 19px;
    font-weight: 800;
    line-height: normal;
    text-align: center;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

    .login-btn:hover,
    input[type="submit"].login-btn:hover,
    input[type="button"].login-btn:hover {
        opacity: 0.96;
        box-shadow: 0 10px 22px rgba(23, 136, 147, 0.22);
    }

    .login-btn:active,
    input[type="submit"].login-btn:active,
    input[type="button"].login-btn:active {
        transform: translateY(1px);
    }

.nafath-message {
    display: block;
    margin-top: 12px;
    font-size: 14px;
    line-height: 1.7;
}

.download-title {
    margin-top: 20px;
    margin-bottom: 14px;
    color: #333;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.6;
}

.apps {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

    .apps a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
    }

    .apps .store-icon {
        height: 40px;
        max-width: 100%;
        border-radius: 8px;
        transition: opacity 0.2s ease, transform 0.2s ease;
    }

        .apps .store-icon:hover {
            opacity: 0.85;
            transform: translateY(-1px);
        }

.ms-webpart-zone,
.ms-webpart-chrome,
.ms-WPBody {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

@media (max-width: 991px) {
    .nafath-wrapper {
        align-items: flex-start;
        padding-top: 28px;
        padding-bottom: 32px;
    }

    .nafath-card {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .main-content {
        width: 100% !important;
        padding-right: 0 !important;
        overflow: visible !important;
    }

    .nafath-wrapper {
        padding: 24px 14px 32px;
        align-items: flex-start;
    }

    .nafath-card {
        padding: 28px 20px;
        border-radius: 20px;
        margin-top: 0;
        margin-bottom: 0;
    }

    .title {
        font-size: 24px;
    }

    .welcome {
        font-size: 26px;
    }

    .desc {
        font-size: 16px;
    }

    .form-area label {
        font-size: 16px;
    }

    .form-area .form-control,
    input.form-control,
    input[type="text"].form-control,
    input[type="tel"].form-control,
    textarea.form-control,
    .login-btn,
    input[type="submit"].login-btn,
    input[type="button"].login-btn {
        height: 52px;
        font-size: 17px;
    }

    .apps .store-icon {
        height: 36px;
    }
}

@media (max-width: 480px) {
    .nafath-wrapper {
        padding: 20px 12px 28px;
    }

    .nafath-card {
        padding: 24px 16px;
        border-radius: 18px;
    }

    .logo-top img {
        width: 128px;
    }

    .title {
        font-size: 21px;
    }

    .welcome {
        font-size: 23px;
    }

    .desc {
        font-size: 15px;
        margin-bottom: 20px;
    }

    .code-box {
        width: 70px;
        height: 70px;
        font-size: 26px;
    }

    .form-area .form-control,
    input.form-control,
    input[type="text"].form-control,
    input[type="tel"].form-control,
    textarea.form-control,
    .login-btn,
    input[type="submit"].login-btn,
    input[type="button"].login-btn {
        height: 50px;
        font-size: 16px;
        border-radius: 10px;
    }

    .download-title {
        font-size: 16px;
    }

    .apps {
        gap: 8px;
    }

        .apps .store-icon {
            height: 34px;
        }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
