/* ==========================================
   LOGIN PAGE STYLES - ABANT CRM
   ========================================== */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

/* Animated Background */
body::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: backgroundMove 20s linear infinite;
}

@keyframes backgroundMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.login-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 460px;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.login-header {
    padding: 32px 48px 16px;
    text-align: center;
    background: linear-gradient(180deg, #F9FAFB 0%, white 100%);
    border-bottom: 1px solid #E5E7EB;
}

.logo-container {
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-container img {
    max-width: 100%;
    height: auto;
}

.login-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.login-header p {
    font-size: 15px;
    color: #6B7280;
    font-weight: 500;
}

.login-body {
    padding: 48px;
}

/* Error Alert */
.error-alert {
    background: #FEF2F2;
    border: 1px solid #FCA5A5;
    color: #991B1B;
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 24px;
    font-size: 14px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.error-alert-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    background: #EF4444;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
}

/* Form Elements */
.form-group {
    margin-bottom: 24px;
}

label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: #9CA3AF;
}

input[type="text"],
input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 14px 16px 14px 48px;
    border: 2px solid #E5E7EB;
    border-radius: 12px;
    font-size: 15px;
    color: #111827;
    background: white;
    transition: all 0.2s;
    font-family: inherit;
}

input[type="text"]:hover,
input[type="email"]:hover,
input[type="password"]:hover {
    border-color: #D1D5DB;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

/* Forgot Password Link */
.forgot-password {
    text-align: right;
    margin-bottom: 24px;
}

.forgot-password a {
    font-size: 14px;
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.forgot-password a:hover {
    color: #764ba2;
}

/* Login Button */
.btn-login {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    position: relative;
    overflow: hidden;
}

.btn-login::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-login:hover::before {
    left: 100%;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.5);
}

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

/* Footer */
.login-footer {
    padding: 24px 48px;
    text-align: center;
    background: #F9FAFB;
    border-top: 1px solid #E5E7EB;
}

.login-footer p {
    font-size: 13px;
    color: #6B7280;
}

.login-footer a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

/* ==========================================
   FORGOT PASSWORD & RESET PASSWORD STYLES
   ========================================== */

.forgot-password-header {
    text-align: center;
    margin-bottom: 20px;
}

.icon-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    margin-bottom: 12px;
}

.icon-box i {
    font-size: 28px;
    color: white;
}

.forgot-password-header h2 {
    margin: 0 0 6px 0;
    font-size: 24px;
    font-weight: 600;
    color: #1a202c;
}

.forgot-password-header p {
    margin: 0;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.5;
}

.success-alert {
    background: #d1fae5;
    border-left: 4px solid #10b981;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.success-alert-icon {
    width: 24px;
    height: 24px;
    background: #10b981;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.success-alert strong {
    color: #065f46;
}

.success-alert span {
    color: #047857;
    font-size: 14px;
}

.back-to-login {
    text-align: center;
    margin-top: 24px;
}

.back-to-login a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.back-to-login a:hover {
    color: #764ba2;
}

.form-hint {
    color: #6b7280;
    font-size: 12px;
    display: block;
    margin-top: 4px;
}

.form-hint i {
    margin-right: 4px;
}

/* Responsive Design */
@media (max-width: 640px) {
    .login-body,
    .login-header,
    .login-footer {
        padding-left: 24px;
        padding-right: 24px;
    }
    
    .forgot-password-header h2 {
        font-size: 20px;
    }
    
    .icon-box {
        width: 56px;
        height: 56px;
    }
    
    .icon-box i {
        font-size: 24px;
    }
}

