* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
    min-height: 100vh;
    font-family: 'Vazirmatn', 'Vazir', 'Tahoma', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-container {
    width: 100%;
    max-width: 450px;
}

.login-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    width: 100%;
}

.login-header {
    text-align: center;
    margin-bottom: 35px;
}

.login-header h2 {
    color: #fff;
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 26px;
}

.login-header h2 i {
    color: #45f882;
    margin-left: 10px;
}

.login-header p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

.form-group {
    margin-bottom: 25px;
}

.form-label {
    color: #fff;
    font-weight: 500;
    margin-bottom: 8px;
    display: block;
    font-size: 14px;
}

.form-control {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #fff;
    padding: 14px 15px;
    font-size: 16px;
    font-family: 'Vazirmatn', sans-serif;
}

.form-control:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: #45f882;
    box-shadow: 0 0 0 3px rgba(69, 248, 130, 0.1);
    color: #fff;
    outline: none;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.btn-login, .btn-verify {
    background: linear-gradient(135deg, #45f882 0%, #2dc55f 100%);
    border: none;
    border-radius: 12px;
    color: #1a1a1a;
    padding: 14px;
    font-weight: 600;
    font-size: 16px;
    width: 100%;
    cursor: pointer;
    font-family: 'Vazirmatn', sans-serif;
}

.btn-login:hover, .btn-verify:hover {
    background: linear-gradient(135deg, #2dc55f 0%, #20a84a 100%);
    box-shadow: 0 4px 15px rgba(69, 248, 130, 0.3);
}

.btn-login:active, .btn-verify:active {
    transform: scale(0.98);
}

.btn-verify {
    display: none;
}

.alert {
    border-radius: 12px;
    border: none;
    padding: 12px 15px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-danger {
    background: rgba(220, 53, 69, 0.2);
    color: #ff6b6b;
    border: 1px solid rgba(220, 53, 69, 0.3);
}

.alert-success {
    background: rgba(69, 248, 130, 0.2);
    color: #45f882;
    border: 1px solid rgba(69, 248, 130, 0.3);
}

.phone-input-group {
    position: relative;
}

.phone-prefix {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
    font-size: 16px;
}

.phone-input {
    padding-left: 50px;
    direction: ltr;
    text-align: left;
}

.code-input {
    direction: ltr;
    text-align: center;
    letter-spacing: 8px;
    font-size: 20px;
    font-weight: 600;
}

.step {
    display: none;
}

.step.active {
    display: block;
}

.back-link {
    text-align: center;
    margin-top: 25px;
}

.back-link a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.back-link a:hover {
    color: #45f882;
}

.back-link a i {
    margin-left: 5px;
}

.loading {
    display: none;
    text-align: center;
    margin: 20px 0;
}

.spinner {
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top: 3px solid #45f882;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading p {
    color: rgba(255, 255, 255, 0.6);
    margin-top: 15px;
    font-size: 14px;
}

@media (max-width: 576px) {
    .login-card {
        padding: 30px 20px;
    }

    .login-header h2 {
        font-size: 22px;
    }
}

