
:root {
    --primary-color: #f97316;
    --primary-dark: #ea580c;
    --secondary-color: #111827;
    --text-color: #374151;
    --muted-color: #6b7280;
    --border-color: rgba(255, 255, 255, 0.35);
    --white: #ffffff;
    --danger: #ef4444;
    --success: #10b981;
}

* {
    box-sizing: border-box;
}

body {
    direction: rtl;

    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 10% 20%, rgba(249, 115, 22, 0.20), transparent 28%),
        radial-gradient(circle at 90% 10%, rgba(251, 146, 60, 0.20), transparent 30%),
        radial-gradient(circle at 50% 90%, rgba(17, 24, 39, 0.16), transparent 35%),
        linear-gradient(135deg, #fff7ed 0%, #ffffff 42%, #f3f4f6 100%);
}

.login-wrapper {
    min-height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
    overflow: hidden;
}

.login-wrapper::before,
.login-wrapper::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    filter: blur(2px);
    opacity: 0.75;
    z-index: 0;
}

.login-wrapper::before {
    width: 420px;
    height: 420px;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.22), rgba(251, 191, 36, 0.12));
    top: -160px;
    right: -150px;
}

.login-wrapper::after {
    width: 380px;
    height: 380px;
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.12), rgba(249, 115, 22, 0.10));
    bottom: -160px;
    left: -130px;
}

.floating-shape {
    position: absolute;
    z-index: 0;
    border-radius: 30px;
    transform: rotate(18deg);
    opacity: 0.55;
}

.shape-one {
    width: 120px;
    height: 120px;
    background: rgba(249, 115, 22, 0.12);
    top: 18%;
    left: 12%;
}

.shape-two {
    width: 90px;
    height: 90px;
    background: rgba(17, 24, 39, 0.08);
    bottom: 18%;
    right: 13%;
    border-radius: 50%;
}

.shape-three {
    width: 70px;
    height: 70px;
    background: rgba(251, 146, 60, 0.16);
    top: 68%;
    left: 22%;
    border-radius: 22px;
}

.login-shell {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1080px;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 34px;
    box-shadow: 0 30px 90px rgba(17, 24, 39, 0.14);
    overflow: hidden;
    backdrop-filter: blur(18px);
}

.login-info {
    position: relative;
    padding: 56px 54px;
    color: var(--white);
    background:
        linear-gradient(135deg, rgba(17, 24, 39, 0.98), rgba(31, 41, 55, 0.94)),
        linear-gradient(135deg, #111827, #1f2937);
    overflow: hidden;
}

.login-info::before {
    content: "";
    position: absolute;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: rgba(249, 115, 22, 0.18);
    top: -140px;
    left: -130px;
}

.login-info::after {
    content: "";
    position: absolute;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.08);
    bottom: -80px;
    right: -80px;
}

.brand-area {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 64px;
}

.brand-logo {
    width: 74px;
    height: 74px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.10);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.20);
}

.brand-logo img {
    width: 100%;
    height: 100%;
    border-radius: 18px;
    object-fit: cover;
}

.brand-text h1 {
    color: #fff;
    font-size: 21px;
    margin: 0 0 6px;
    font-weight: 800;
    letter-spacing: -0.3px;
}

.brand-text span {
    color: rgba(255, 255, 255, 0.62);
    font-size: 13px;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fed7aa;
    background: rgba(249, 115, 22, 0.14);
    border: 1px solid rgba(249, 115, 22, 0.22);
    padding: 9px 14px;
    border-radius: 999px;
    font-size: 13px;
    margin-bottom: 22px;
}

.hero-content h2 {
    font-size: 34px;
    line-height: 1.55;
    color: #fff;
    font-weight: 900;
    margin: 0 0 18px;
    letter-spacing: -0.8px;
}

.hero-content p {
    color: rgba(255, 255, 255, 0.66);
    font-size: 15px;
    line-height: 2.1;
    max-width: 500px;
    margin-bottom: 36px;
}

.feature-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    position: relative;
    z-index: 2;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 13px;
    padding: 13px 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.feature-item i {
    color: #fb923c;
    font-size: 20px;
}

.login-card-area {
    padding: 56px 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.56);
}

.login-card {
    width: 100%;
    max-width: 420px;
}

.login-card-header {
    margin-bottom: 32px;
    text-align: right;
}

.login-card-header .mini-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-dark);
    background: rgba(249, 115, 22, 0.10);
    padding: 8px 13px;
    border-radius: 999px;
    font-size: 13px;
    margin-bottom: 18px;
}

.login-card-header h3 {
    color: var(--secondary-color);
    font-size: 28px;
    font-weight: 900;
    margin: 0 0 12px;
    letter-spacing: -0.6px;
}

.login-card-header p {
    color: var(--muted-color);
    font-size: 14px;
    line-height: 1.9;
    margin: 0;
}

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

.form-label {
    color: #1f2937;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 9px;
}

.input-box {
    position: relative;
}

.input-box i {
    position: absolute;
    right: 17px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 21px;
    z-index: 2;
    transition: all 0.2s ease;
}

.input-box .form-control {
    height: 54px;
    border-radius: 18px;
    border: 1px solid #e5e7eb;
    background: rgba(255, 255, 255, 0.84);
    padding: 12px 50px 12px 16px;
    color: #111827;
    font-size: 14px;
    box-shadow: none;
    transition: all 0.2s ease;
}

.input-box .form-control:focus {
    border-color: rgba(249, 115, 22, 0.55);
    background: #fff;
    box-shadow: 0 0 0 5px rgba(249, 115, 22, 0.10);
}

.input-box .form-control:focus + .input-helper {
    color: var(--primary-color);
}

.input-box:focus-within i {
    color: var(--primary-color);
}

.form-control::placeholder {
    color: #a1a1aa;
}

.remember-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 6px 0 24px;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-right: 0;
}

.form-check-input {
    float: none;
    margin: 0;
    width: 17px;
    height: 17px;
    cursor: pointer;
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.form-check-label {
    color: #4b5563;
    font-size: 13px;
    cursor: pointer;
}

.btn-login {
    height: 54px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border: none;
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    box-shadow: 0 16px 34px rgba(249, 115, 22, 0.28);
    transition: all 0.22s ease;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 38px rgba(249, 115, 22, 0.36);
    color: #fff;
}

.btn-login:disabled {
    opacity: 0.75;
    cursor: not-allowed;
    transform: none;
}

.hidden {
    display: none !important;
    opacity: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    display: block !important;
    animation: fadeInUp 0.45s ease-out forwards;
}

.verify-box {
    background: rgba(249, 115, 22, 0.08);
    border: 1px solid rgba(249, 115, 22, 0.14);
    border-radius: 22px;
    padding: 18px 18px;
    margin-bottom: 22px;
}

.verify-box-title {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #9a3412;
    font-size: 14px;
    font-weight: 800;
    margin-bottom: 8px;
}

.verify-box p {
    color: #7c2d12;
    font-size: 13px;
    line-height: 1.9;
    margin: 0;
}

#timer {
    display: block;
    text-align: center;
    color: #6b7280;
    font-size: 13px;
    margin-top: 4px;
    margin-bottom: 18px;
}

#sendAgainCode {
    display: none;
    text-align: center;
    color: var(--primary-dark);
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    margin-top: 4px;
    margin-bottom: 18px;
    transition: all 0.2s ease;
}

#sendAgainCode:hover {
    color: var(--primary-color);
}

.back-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    color: #6b7280;
    font-size: 13px;
    margin-top: 18px;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
}

.back-login:hover {
    color: var(--primary-dark);
}

.security-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 26px;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(17, 24, 39, 0.04);
    color: #6b7280;
    font-size: 12px;
    line-height: 1.8;
}

.security-note i {
    color: var(--primary-color);
    font-size: 20px;
    margin-top: 2px;
}

.swal2-title {
    font-size: 20px !important;
}

@media (max-width: 991px) {
    .login-shell {
        grid-template-columns: 1fr;
        max-width: 560px;
    }

    .login-info {
        padding: 38px 30px;
    }

    .brand-area {
        margin-bottom: 34px;
    }

    .hero-content h2 {
        font-size: 27px;
    }

    .feature-list {
        grid-template-columns: 1fr;
    }

    .login-card-area {
        padding: 42px 28px;
    }
}

@media (max-width: 575px) {
    .login-wrapper {
        padding: 18px 12px;
        align-items: flex-start;
    }

    .login-shell {
        border-radius: 26px;
    }

    .login-info {
        padding: 32px 22px;
    }

    .brand-logo {
        width: 62px;
        height: 62px;
        border-radius: 20px;
    }

    .brand-logo img {
        border-radius: 15px;
    }

    .brand-text h1 {
        font-size: 17px;
    }

    .hero-content h2 {
        font-size: 23px;
    }

    .hero-content p {
        font-size: 13px;
    }

    .login-card-area {
        padding: 34px 20px;
    }

    .login-card-header h3 {
        font-size: 24px;
    }

    .shape-one,
    .shape-two,
    .shape-three {
        display: none;
    }
}
