@import url("https://fonts.googleapis.com/css?family=Alexandria:400,500,600,700&display=swap");

:root {
    --primary-gradient: linear-gradient(135deg, #0CA2E4 0%, #0BBB87 100%);
    --text: #101828;
    --text-secondary: #344054;
    --muted: #667085;
    --border: #d0d5dd;
    --border-light: #eaecf0;
    --card: #ffffff;
    --bg-light: #f9fafb;
    --shadow-sm: 0 1px 3px rgba(16, 24, 40, 0.1), 0 1px 2px rgba(16, 24, 40, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(16, 24, 40, 0.1), 0 2px 4px -1px rgba(16, 24, 40, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(16, 24, 40, 0.1), 0 4px 6px -2px rgba(16, 24, 40, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(16, 24, 40, 0.1), 0 10px 10px -5px rgba(16, 24, 40, 0.04);
}

body {
    font-family: "Alexandria", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.page-bg {
    min-height: 100vh;
    background: linear-gradient(135deg, #f0f9ff 0%, #ffffff 50%, #f0fdf4 100%);
    position: relative;
    overflow: hidden;
}

.page-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(12, 162, 228, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.page-bg::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(11, 187, 135, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.welcome-wrap {
    max-width: 560px;
}

.auth-card {
    background: var(--card);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
    padding: clamp(24px, 4vw, 40px);
    position: relative;
    backdrop-filter: blur(10px);
}

.headline {
    color: var(--text);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.subtext {
    color: var(--muted);
    font-size: 1.125rem;
    line-height: 1.6;
}
/* Form field spacing */
.form-field {
    margin-bottom: 1rem;
}

/* Modern Form Labels */
label, .form-label {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    display: block;
    letter-spacing: 0.01em;
}

/* Inputs with icons */
.icon-input {
    position: relative;
    margin-bottom: 1.25rem;
}

.icon-input i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    color: var(--muted);
    pointer-events: none;
    font-size: 1rem;
    transition: color 0.2s ease;
}

.icon-input .form-control {
    padding-left: 48px;
    padding-right: 16px;
    border-radius: 12px;
    border: 1.5px solid var(--border);
    height: 48px;
    background: #fff;
    font-size: 1rem;
    color: var(--text);
    transition: all 0.2s ease;
}

.icon-input .form-control:focus {
    border-color: #0CA2E4;
    box-shadow: 0 0 0 4px rgba(12, 162, 228, 0.1);
    outline: none;
}

.icon-input .form-control:focus + i {
    color: #0CA2E4;
}

.icon-input .form-control::placeholder {
    color: #98a2b3;
}

/* Error messages */
.icon-input .text-danger {
    margin-top: 0.375rem;
    display: block;
    font-size: 0.813rem;
    color: #f04438;
    font-weight: 500;
}

/* Password input specific styling */
.password-input-container {
    position: relative;
}

.password-input-container .password-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--muted);
    cursor: pointer;
    z-index: 10;
    padding: 0.25rem;
    transition: color 0.2s ease;
}

.password-input-container .password-toggle:hover {
    color: #0CA2E4;
}

/* Password requirements */
.password-requirements {
    margin-top: 0.75rem;
    margin-bottom: 1rem;
}

.password-requirements .requirement-item {
    margin-bottom: 0.375rem;
    font-size: 0.813rem;
    line-height: 1.4;
    color: var(--muted);
}

/* Agreement checkbox */
.agreement-checkbox {
    margin-top: 1rem;
    margin-bottom: 1rem;
}

/* Remember + forgot line */
.help-line {
    color: var(--text-secondary);
}

.help-line .form-check-input {
    width: 18px;
    height: 18px;
    border: 1.5px solid var(--border);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.help-line .form-check-input:checked {
    background-color: #0CA2E4;
    border-color: #0CA2E4;
}

.help-line .form-check-label {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
}

.help-line a {
    color: #0CA2E4;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.help-line a:hover {
    color: #0BBB87;
    text-decoration: none;
}

/* Primary Gradient Button */
.btn-gradient {
    background: linear-gradient(270deg, #0CA2E4 0%, #0BBB87 100%);
    color: #fff;
    border: 0;
    height: 52px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.01em;
    box-shadow: 0 8px 16px rgba(12, 162, 228, 0.25);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(12, 162, 228, 0.35);
    background: linear-gradient(270deg, #0BBB87 0%, #0CA2E4 100%);
    color: #fff;
}

.btn-gradient:active {
    transform: translateY(0);
    box-shadow: 0 4px 8px rgba(12, 162, 228, 0.2);
}

.btn-soft {
    background: linear-gradient(135deg, rgba(12, 162, 228, 0.08) 0%, rgba(11, 187, 135, 0.08) 100%);
    border: 2px solid transparent;
    background-clip: padding-box;
    position: relative;
    height: 54px;
    border-radius: 14px;
    padding-top: 13px;
    font-weight: 600;
    color: #0CA2E4;
    transition: all 0.3s ease;
    overflow: hidden;
}

.btn-soft::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 12px;
    padding: 2px;
    background: linear-gradient(135deg, #0CA2E4 0%, #0BBB87 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    z-index: -1;
}

.btn-soft:hover {
    background: linear-gradient(135deg, rgba(12, 162, 228, 0.15) 0%, rgba(11, 187, 135, 0.15) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(12, 162, 228, 0.2);
    color: #0BBB87;
}

.btn-soft:active {
    transform: translateY(0);
    box-shadow: 0 4px 8px rgba(12, 162, 228, 0.15);
}

/* Logo and Branding */
.logo-mark {
    width: 120px;
    height: auto;
    filter: drop-shadow(0 4px 12px rgba(12, 162, 228, 0.15));
    transition: transform 0.3s ease;
}

.logo-mark:hover {
    transform: scale(1.05);
}

.illus {
    max-width: 420px;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.08));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Divider */
hr {
    border-color: var(--border-light);
    opacity: 1;
    margin: 1.5rem 0;
}

/* Text elements */
.text-center.text-muted {
    color: var(--muted) !important;
    font-size: 0.938rem;
    font-weight: 500;
}

/* Card Title */
.auth-card h3 {
    color: var(--text);
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Language Switcher */
.btn-light.btn-hover {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-light) !important;
    padding: 0.5rem 1rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.btn-light.btn-hover:hover {
    background: #ffffff;
    box-shadow: var(--shadow-md);
    color: #0CA2E4;
}

/* Maintenance Banner */
.text-center.m-1 {
    font-weight: 600;
    padding: 0.75rem;
    border-radius: 8px;
    border: 1px solid #fbbf24;
    background: #fef3c7;
    color: #92400e;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .welcome-wrap {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .illus {
        max-width: 300px;
        margin: 0 auto;
    }
    
    .auth-card {
        max-width: 480px;
        margin: 0 auto;
    }
}

@media (max-width: 576px) {
    .auth-card {
        padding: 1.5rem;
        border-radius: 16px;
    }
    
    .headline {
        font-size: 1.75rem;
    }
    
    .subtext {
        font-size: 1rem;
    }
    
    .icon-input .form-control {
        height: 44px;
    }
    
    .btn-gradient,
    .btn-soft {
        height: 48px;
    }
    
    .logo-mark {
        width: 80px;
    }
}