/* ============================================
   SPA SAMIA - ELEGANT LOGIN
   ============================================ */

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #2D5F7F;
    position: relative;
    overflow: hidden;
}

/* Decorative circles */
body::before,
body::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
}

body::before {
    width: 600px;
    height: 600px;
    top: -200px;
    right: -200px;
}

body::after {
    width: 400px;
    height: 400px;
    bottom: -150px;
    left: -150px;
}

.auth-wrapper {
    width: 100%;
    max-width: 400px;
    padding: 16px;
    position: relative;
    z-index: 1;
    animation: fadeIn 0.5s ease;
}

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

/* Hide sidebar */
.auth-sidebar {
    display: none;
}

/* Form Container */
.auth-form-container {
    background: #FFFFFF;
    padding: 36px 32px 32px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
}

/* Logo Section */
.auth-logo {
    text-align: center;
    margin-bottom: 24px;
}

.logo-circle {
    width: 90px;
    height: 90px;
    margin: 0 auto;
    background: #2D5F7F;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 8px 24px rgba(45, 95, 127, 0.25),
        0 0 0 8px rgba(45, 95, 127, 0.1);
}

.logo-circle img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

/* Header */
.auth-header {
    margin-bottom: 28px;
    text-align: center;
}

.auth-header h1 {
    font-size: 22px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 8px;
    letter-spacing: -0.3px;
}

.auth-header p {
    font-size: 14px;
    color: #6B7280;
    font-weight: 400;
    line-height: 1.5;
}

/* Form Styles */
.ant-form-item {
    margin-bottom: 16px;
}

.ant-form-item-label {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 7px;
    font-weight: 500;
    font-size: 13px;
    color: #374151;
}

.ant-form-item-label i {
    font-size: 12px;
    color: #2D5F7F;
}

.ant-input {
    width: 100%;
    height: 42px;
    padding: 11px 14px;
    border: 1.5px solid #E5E7EB;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s ease;
    background: #F9FAFB;
    color: #111827;
    font-weight: 400;
}

.ant-input:hover {
    border-color: #D1D5DB;
    background: #FFFFFF;
}

.ant-input:focus {
    outline: none;
    border-color: #2D5F7F;
    background: #FFFFFF;
    box-shadow: 0 0 0 3px rgba(45, 95, 127, 0.1);
}

.ant-input::placeholder {
    color: #9CA3AF;
    font-size: 13px;
}

/* Password Toggle Button */
.ant-form-item-control {
    position: relative;
}

button[id*="password-toggle"] {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 14px;
    color: #9CA3AF;
    transition: all 0.2s ease;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
}

button[id*="password-toggle"]:hover {
    color: #2D5F7F;
    background: rgba(45, 95, 127, 0.08);
}

button[id*="password-toggle"]:active {
    transform: translateY(-50%) scale(0.95);
}

/* Checkbox */
.ant-checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    user-select: none;
}

.ant-checkbox-wrapper input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #2D5F7F;
}

.ant-checkbox-wrapper span {
    font-size: 13px;
    color: #4B5563;
    font-weight: 400;
}

/* Submit Button */
.ant-btn-primary {
    width: 100%;
    height: 48px;
    background: #2D5F7F;
    border: none;
    border-radius: 8px;
    color: #FFFFFF;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.3px;
    box-shadow: 0 4px 12px rgba(45, 95, 127, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.ant-btn-primary i {
    font-size: 14px;
    transition: transform 0.2s ease;
}

.ant-btn-primary:not(:disabled):hover {
    background: #234A5E;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(45, 95, 127, 0.4);
}

.ant-btn-primary:not(:disabled):hover i {
    transform: translateX(3px);
}

.ant-btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(45, 95, 127, 0.3);
}

.ant-btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Spinner animation */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Alert */
.ant-alert {
    padding: 11px 14px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 18px;
}

.ant-alert-error {
    background: #FEF2F2;
    border: 1.5px solid #FCA5A5;
    color: #DC2626;
}

.ant-alert-success {
    background: #F0FDF4;
    border: 1.5px solid #BBF7D0;
    color: #16A34A;
}

.ant-alert ul {
    margin: 0;
    padding-left: 18px;
}

.ant-alert ul li {
    margin: 3px 0;
}

/* Footer */
.auth-footer {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #F3F4F6;
    text-align: center;
    color: #9CA3AF;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.auth-footer i {
    font-size: 12px;
    color: #10B981;
}

/* Links */
a {
    color: #2D5F7F;
    text-decoration: none;
    font-weight: 500;
    font-size: 13px;
    transition: color 0.2s ease;
}

a:hover {
    color: #1E4A63;
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 480px) {
    .auth-wrapper {
        padding: 12px;
        max-width: 100%;
    }
    
    .auth-form-container {
        padding: 32px 24px 28px;
        border-radius: 16px;
    }
    
    .auth-logo img {
        width: 60px;
        height: 60px;
    }
    
    .auth-logo h1 {
        font-size: 20px;
    }
    
    .auth-header h1 {
        font-size: 17px;
    }
    
    .ant-input {
        height: 40px;
        font-size: 13px;
    }
    
    .ant-btn-primary {
        height: 44px;
        font-size: 14px;
    }
}

/* Smooth animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}
