
/* ==========================================================
   IQRANIX — PREMIUM AUTHENTICATION DESIGN
   Midnight Navy + Emerald
========================================================== */

:root {
    --bg: #07131f;
    --bg-light: #0b1b29;

    --card: rgba(13, 30, 43, 0.94);

    --emerald: #20b58a;
    --emerald-light: #39d3a4;
    --emerald-dark: #12876a;

    --text: #f4f7f8;
    --muted: #91a4b2;

    --border: rgba(255, 255, 255, 0.09);

    --danger: #ff7777;
    --success: #43d6a2;
}


/* RESET */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    min-height: 100dvh;

    background: var(--bg);

    color: var(--text);

    font-family: "DM Sans", sans-serif;

    overflow-x: hidden;
}


/* BACKGROUND */

.background-effects {
    position: fixed;
    inset: 0;

    overflow: hidden;

    pointer-events: none;

    z-index: 0;
}

.pattern {
    position: absolute;
    inset: 0;

    opacity: 0.12;

    background-image:
        radial-gradient(
            rgba(32, 181, 138, 0.35) 1px,
            transparent 1px
        );

    background-size: 38px 38px;

    mask-image:
        linear-gradient(
            to bottom,
            black,
            transparent 85%
        );
}

.glow {
    position: absolute;

    width: 420px;
    height: 420px;

    border-radius: 50%;

    filter: blur(120px);

    opacity: 0.14;
}

.glow-one {
    top: -180px;
    left: -120px;

    background: #16c997;
}

.glow-two {
    bottom: -200px;
    right: -130px;

    background: #1674a2;
}


/* MAIN CONTAINER */

.auth-container {
    position: relative;
    z-index: 1;

    width: 100%;
    max-width: 520px;

    min-height: 100vh;

    margin: auto;

    padding: 45px 25px 25px;

    display: flex;
    flex-direction: column;
    align-items: center;
}


/* BRAND */

.brand {
    text-align: center;
    margin-bottom: 46px;
}

.brand-logo {
    display: inline-flex;
    align-items: center;
    gap: 11px;

    color: var(--text);

    font-size: 25px;
    font-weight: 800;

    letter-spacing: 3px;

    text-decoration: none;
}

.logo-icon {
    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 13px;

    background:
        linear-gradient(
            135deg,
            var(--emerald),
            var(--emerald-dark)
        );

    color: #fff;

    box-shadow:
        0 5px 25px rgba(32, 181, 138, 0.25);
}

.brand-tagline {
    margin-top: 9px;

    color: var(--muted);

    font-size: 11px;

    letter-spacing: 2px;
}


/* WELCOME */

.welcome-section {
    width: 100%;

    text-align: center;

    margin-bottom: 30px;
}

.welcome-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 8px 13px;

    border: 1px solid rgba(32, 181, 138, 0.2);

    border-radius: 30px;

    background: rgba(32, 181, 138, 0.08);

    color: var(--emerald-light);

    font-size: 10px;
    font-weight: 700;

    letter-spacing: 1.3px;

    margin-bottom: 18px;
}

.welcome-section h1 {
    font-family: "Playfair Display", serif;

    font-size: clamp(35px, 8vw, 48px);

    font-weight: 600;

    letter-spacing: -1px;

    line-height: 1.2;
}

.welcome-section h1 span {
    color: var(--emerald-light);
}

.welcome-section > p {
    max-width: 380px;

    margin: 13px auto 0;

    color: var(--muted);

    font-size: 13px;

    line-height: 1.8;
}


/* AUTH CARD */

.auth-card {
    width: 100%;

    padding: 30px 27px;

    background: var(--card);

    border: 1px solid var(--border);

    border-radius: 22px;

    box-shadow:
        0 25px 70px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.025);

    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.card-heading {
    margin-bottom: 24px;
}

.card-heading h2 {
    font-size: 19px;

    font-weight: 700;
}

.card-heading p {
    margin-top: 7px;

    color: var(--muted);

    font-size: 12px;
}


/* GOOGLE BUTTON */

.google-button {
    width: 100%;
    min-height: 51px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 12px;

    border: 1px solid rgba(255, 255, 255, 0.13);

    border-radius: 11px;

    background: rgba(255, 255, 255, 0.045);

    color: var(--text);

    font-family: inherit;

    font-size: 13px;
    font-weight: 600;

    cursor: pointer;

    transition: 0.25s ease;
}

.google-button:hover {
    background: rgba(255, 255, 255, 0.09);

    border-color: rgba(255, 255, 255, 0.25);

    transform: translateY(-2px);
}

.google-icon {
    color: #fff;
    font-size: 17px;
}


/* DIVIDER */

.divider {
    display: flex;
    align-items: center;

    gap: 12px;

    margin: 24px 0;
}

.divider span {
    flex: 1;

    height: 1px;

    background: var(--border);
}

.divider p {
    color: var(--muted);

    font-size: 9px;

    font-weight: 700;

    letter-spacing: 1.1px;

    white-space: nowrap;
}


/* MESSAGE */

.message {
    display: none;

    padding: 12px 14px;

    margin-bottom: 17px;

    border-radius: 9px;

    font-size: 12px;

    line-height: 1.6;
}

.message:not(:empty) {
    display: block;
}

.message.error {
    color: var(--danger);

    background: rgba(255, 80, 80, 0.09);

    border: 1px solid rgba(255, 80, 80, 0.17);
}

.message.success {
    color: var(--success);

    background: rgba(32, 181, 138, 0.09);

    border: 1px solid rgba(32, 181, 138, 0.18);
}


/* FORM */

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;

    margin-bottom: 9px;

    color: #e4ebee;

    font-size: 12px;

    font-weight: 600;
}

.input-wrapper {
    position: relative;

    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;

    left: 15px;

    color: #8195a2;

    font-size: 14px;

    pointer-events: none;
}

.input-wrapper input {
    width: 100%;
    height: 51px;

    padding: 0 15px 0 43px;

    border: 1px solid rgba(255, 255, 255, 0.1);

    border-radius: 10px;

    outline: none;

    background: rgba(255, 255, 255, 0.035);

    color: var(--text);

    font-family: inherit;

    font-size: 13px;

    transition: 0.25s ease;
}

.input-wrapper input::placeholder {
    color: #718493;
}

.input-wrapper input:focus {
    border-color: var(--emerald);

    background: rgba(32, 181, 138, 0.045);

    box-shadow:
        0 0 0 3px rgba(32, 181, 138, 0.1);
}


/* PASSWORD LABEL */

.password-label {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 9px;
}

.password-label label {
    margin: 0;
}

.forgot-button {
    padding: 0;

    border: none;

    background: none;

    color: var(--emerald-light);

    font-family: inherit;

    font-size: 11px;

    font-weight: 600;

    cursor: pointer;
}

.forgot-button:hover {
    color: #fff;
}


/* LOGIN BUTTON */

.login-button {
    width: 100%;
    height: 52px;

    margin-top: 5px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 12px;

    border: none;

    border-radius: 11px;

    background:
        linear-gradient(
            110deg,
            var(--emerald-dark),
            var(--emerald),
            var(--emerald-light)
        );

    color: #031a14;

    font-family: inherit;

    font-size: 14px;

    font-weight: 800;

    cursor: pointer;

    box-shadow:
        0 8px 24px rgba(32, 181, 138, 0.18);

    transition: 0.25s ease;
}

.login-button:hover {
    transform: translateY(-2px);

    box-shadow:
        0 12px 30px rgba(32, 181, 138, 0.28);
}

.login-button i {
    transition: transform 0.25s ease;
}

.login-button:hover i {
    transform: translateX(4px);
}


/* SIGNUP */

.signup-section {
    display: flex;
    align-items: center;
    justify-content: center;

    flex-wrap: wrap;

    gap: 6px;

    margin-top: 25px;

    font-size: 12px;
}

.signup-section p {
    color: var(--muted);
}

.signup-button {
    border: none;

    background: none;

    color: var(--emerald-light);

    font-family: inherit;

    font-size: 12px;

    font-weight: 700;

    cursor: pointer;
}

.signup-button i {
    margin-left: 4px;

    font-size: 10px;
}


/* FOOTER */

.auth-footer {
    width: 100%;

    text-align: center;

    margin-top: 38px;
}

.footer-divider {
    width: 55px;
    height: 2px;

    margin: 0 auto 20px;

    border-radius: 10px;

    background: var(--emerald);
}

.footer-verse {
    color: var(--emerald-light);

    font-size: 17px;

    direction: rtl;

    margin-bottom: 10px;
}

.footer-text {
    color: var(--muted);

    font-size: 11px;
}

.copyright {
    margin-top: 18px;

    color: #647987;

    font-size: 10px;
}


/* DISABLED BUTTONS */

button:disabled {
    opacity: 0.55;

    cursor: not-allowed;

    transform: none !important;
}


/* RESPONSIVE */

@media (max-width: 480px) {

    .auth-container {
        padding: 32px 18px 22px;
    }

    .brand {
        margin-bottom: 36px;
    }

    .auth-card {
        padding: 25px 19px;
        border-radius: 18px;
    }

    .welcome-section {
        margin-bottom: 25px;
    }

    .welcome-section > p {
        font-size: 12px;
    }

    .auth-footer {
        margin-top: 30px;
    }

}

@media (max-width: 350px) {

    .auth-container {
        padding-left: 13px;
        padding-right: 13px;
    }

    .auth-card {
        padding: 22px 15px;
    }

    .divider p {
        font-size: 8px;
    }

}
