/* Modern Premium Login Styles */
:root {
    --primary-color: #1a4d4d;
    /* Deep Teal/Green */
    --primary-gradient: linear-gradient(135deg, #113838 0%, #255b5c 100%);
    --accent-color: #c5a059;
    /* Gold */
    --accent-hover: #b08d45;
    --text-dark: #333;
    --text-light: #aaa;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.08);
    --radius-lg: 24px;
    --radius-md: 12px;
}

* {
    box-sizing: border-box;
    font-family: 'kahruba', 'Vazir', 'Tahoma', sans-serif;
}

body,
html {
    margin: 0;
    padding: 0;
    height: 100%;
    background-color: var(--bg-light);
    direction: rtl;
    overflow-x: hidden;
}

.login-page {
    display: flex;
    flex-direction: column;
    height: 100vh;
    position: relative;
}

/* Header Section */
.login-header {
    background: var(--primary-gradient);
    height: 42vh;
    border-bottom-left-radius: 40px;
    border-bottom-right-radius: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 3rem;
    color: var(--white);
    text-align: center;
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 20px rgba(37, 91, 92, 0.3);
}

.logo-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 15px;
    border-radius: 50%;
    margin-bottom: 20px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.logo-img {
    width: 6rem;
    height: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.app-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.app-subtitle {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-top: 5px;
    font-weight: 300;
}

/* Content & Form Section */
.login-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: -60px;
    /* Overlap effect */
    z-index: 2;
    padding: 0 20px;
}

.login-card {
    background: var(--white);
    width: 100%;
    max-width: 400px;
    padding: 2.5rem 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    animation: fadeInUp 0.6s ease-out;
}

/* Form Styles */
.form-group {
    margin-bottom: 2rem;
    position: relative;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-dark);
    font-weight: 600;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.custom-input {
    width: 100%;
    padding: 14px 15px 14px 45px;
    /* Space for icon on left */
    border: 2px solid #eef2f5;
    border-radius: var(--radius-md);
    font-size: 1.1rem;
    background: #fafbfc;
    transition: all 0.3s ease;
    text-align: left;
    /* LTR for numbers */
    direction: ltr;
    color: var(--primary-color);
    font-weight: bold;
}

.custom-input::placeholder {
    color: #ccc;
    font-weight: normal;
}

.custom-input:focus {
    border-color: var(--primary-color);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(37, 91, 92, 0.1);
    outline: none;
}

.input-icon {
    position: absolute;
    left: 15px;
    color: var(--text-light);
    font-size: 1.2rem;
    transition: color 0.3s;
}

.custom-input:focus+.input-icon {
    color: var(--primary-color);
}

/* Button */
.btn-login {
    width: 100%;
    padding: 16px;
    background: var(--accent-color);
    color: var(--white);
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(197, 160, 89, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-login:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(197, 160, 89, 0.5);
}

.btn-login:active {
    transform: translateY(0);
}

.btn-login:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Footer */
.login-footer {
    margin-top: auto;
    padding-bottom: 2rem;
    text-align: center;
    color: #999;
    font-size: 0.8rem;
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* SweetAlert customization override */
div:where(.swal2-container) button:where(.swal2-styled).swal2-confirm {
    background-color: var(--primary-color) !important;
    box-shadow: 0 0 0 0 rgba(0, 0, 0, 0) !important;
}

div:where(.swal2-container) input:where(.swal2-input):focus {
    box-shadow: 0 0 0 3px rgba(37, 91, 92, 0.2) !important;
    border-color: var(--primary-color) !important;
}