/* Aktifizyo Login Page Styles */
:root {
    --primary-green: #3faf74;
    --light-green: #8ac7a9;
    --dark-gray: #1d1d1b;
    --light-gray: #e8e8e8;
    --gradient-primary: linear-gradient(135deg, #3faf74 0%, #8ac7a9 100%);
    --gradient-secondary: linear-gradient(135deg, #8ac7a9 0%, #3faf74 100%);
}

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

body {
    font-family: 'Inter', sans-serif;
    background: var(--gradient-primary);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.05) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255,255,255,0.03) 0%, transparent 50%);
    z-index: -1;
}

.login-container {
    max-width: 450px;
    width: 100%;
    margin: 20px;
}

.login-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
    overflow: hidden;
    border: none;
    backdrop-filter: blur(10px);
    animation: slideUp 0.8s ease-out;
}

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

.card-header {
    background: var(--gradient-secondary);
    border: none;
    padding: 40px 40px 30px;
    text-align: center;
    position: relative;
}

.card-header::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: white;
    border-radius: 2px;
    opacity: 0.3;
}

.logo {
    width: 120px;
    height: auto;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
}

.welcome-text {
    color: white;
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.welcome-subtitle {
    color: rgba(255,255,255,0.9);
    margin: 8px 0 0 0;
    font-size: 16px;
    font-weight: 400;
}

.card-body {
    padding: 40px;
}

.form-floating {
    margin-bottom: 25px;
    position: relative;
}

.form-floating input {
    border: 2px solid var(--light-gray);
    border-radius: 12px;
    padding: 20px 15px 8px;
    height: 65px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #fafafa;
}

.password-field input {
    padding-right: 75px; /* Extra padding for two icons */
}

.form-floating input:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 0.2rem rgba(63, 175, 116, 0.15);
    background: white;
}

.form-floating label {
    color: #666;
    font-weight: 500;
    transition: all 0.3s ease;
}

.form-floating input:focus ~ label,
.form-floating input:not(:placeholder-shown) ~ label {
    color: var(--primary-green);
}

.input-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    z-index: 3;
    transition: color 0.3s ease;
}

.form-floating input:focus + label + .input-icon {
    color: var(--primary-green);
}

/* Password Field Specific Styles */
.password-field {
    position: relative;
}

.password-field .input-icon {
    right: 45px; /* Move lock icon to the left to make space for eye icon */
}

.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    z-index: 4;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    padding: 5px;
    border-radius: 4px;
}

.password-toggle:hover {
    color: var(--primary-green);
    background-color: rgba(63, 175, 116, 0.1);
}

.password-field input:focus ~ .password-toggle {
    color: var(--primary-green);
}

.password-toggle.active {
    color: var(--primary-green);
}

.btn-login {
    background: var(--gradient-primary);
    border: none;
    border-radius: 12px;
    padding: 15px;
    font-size: 18px;
    font-weight: 600;
    color: white;
    width: 100%;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(63, 175, 116, 0.3);
    color: white;
}

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

.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 ease;
}

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

.form-check {
    margin: 20px 0;
}

.form-check-input {
    width: 20px;
    height: 20px;
    border: 2px solid var(--light-gray);
    border-radius: 6px;
}

.form-check-input:checked {
    background-color: var(--primary-green);
    border-color: var(--primary-green);
}

.form-check-label {
    font-weight: 500;
    color: #666;
    margin-left: 8px;
}

.alert {
    border-radius: 12px;
    border: none;
    padding: 15px 20px;
    margin-bottom: 25px;
    font-weight: 500;
}

.alert-danger {
    background: #ffebee;
    color: #c62828;
}

.alert-success {
    background: #e8f5e8;
    color: #2e7d32;
}

.footer-text {
    text-align: center;
    margin-top: 30px;
    color: #999;
    font-size: 14px;
}

.footer-text .brand {
    color: var(--primary-green);
    font-weight: 600;
    text-decoration: none;
}

/* Loading state */
.btn-login.loading {
    pointer-events: none;
    opacity: 0.8;
}

.btn-login .spinner {
    display: none;
    width: 20px;
    height: 20px;
    margin-right: 8px;
}

.btn-login.loading .spinner {
    display: inline-block;
}

.btn-login.loading .btn-text {
    opacity: 0.7;
}

/* Responsive */
@media (max-width: 576px) {
    .login-container {
        margin: 15px;
    }
    
    .card-header {
        padding: 30px 30px 25px;
    }
    
    .card-body {
        padding: 30px;
    }
    
    .welcome-text {
        font-size: 24px;
    }
    
    .welcome-subtitle {
        font-size: 14px;
    }
}
