/* ============================
   LOGIN PAGE STYLES
   File: css/login.css
=============================== */

* {
    box-sizing: border-box;
}

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #1A73E8 0%, #1557B0 50%, #0d47a1 100%);
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.login-container::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: moveBackground 20s linear infinite;
    opacity: 0.3;
}

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

.login-box {
    background: white;
    padding: 45px 40px;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    width: 100%;
    max-width: 450px;
    animation: fadeInUp 0.6s ease-out;
    position: relative;
    z-index: 1;
}

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

/* Login Header */
.login-header {
    text-align: center;
    margin-bottom: 35px;
}

.logo-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 15px;
    background: linear-gradient(135deg, #1A73E8 0%, #1557B0 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(26, 115, 232, 0.3);
}

.logo-icon i {
    font-size: 35px;
    color: white;
}

.login-header h2 {
    color: #1A73E8;
    margin-bottom: 8px;
    font-size: 28px;
    font-weight: 700;
}

.login-header p {
    color: #666;
    font-size: 14px;
    margin: 0;
}

/* Form Styles */
.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    color: #333;
    font-weight: 600;
    font-size: 14px;
}

.form-group label i {
    color: #1A73E8;
    font-size: 16px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    box-sizing: border-box;
    background-color: #fafafa;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #1A73E8;
    background-color: white;
    box-shadow: 0 0 0 4px rgba(26, 115, 232, 0.1);
}

.form-group input::placeholder {
    color: #999;
}

/* Password Input Wrapper */
.password-input-wrapper {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
    font-size: 18px;
    padding: 5px;
    transition: color 0.3s;
}

.toggle-password:hover {
    color: #1A73E8;
}

.toggle-password:focus {
    outline: none;
}

/* Select Wrapper */
.select-wrapper {
    position: relative;
}

.select-wrapper select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 45px;
    cursor: pointer;
}

.select-arrow {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #666;
    font-size: 18px;
    transition: transform 0.3s;
}

.select-wrapper:focus-within .select-arrow {
    transform: translateY(-50%) rotate(180deg);
    color: #1A73E8;
}

.form-hint {
    display: block;
    margin-top: 6px;
    color: #999;
    font-size: 12px;
    font-style: italic;
}

/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    margin-top: -5px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #1A73E8;
}

.forgot-password {
    color: #1A73E8;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.forgot-password:hover {
    color: #1557B0;
    text-decoration: underline;
}

/* Login Button */
.btn-login {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #1A73E8 0%, #1557B0 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(26, 115, 232, 0.3);
}

.btn-login:hover:not(:disabled) {
    background: linear-gradient(135deg, #1557B0 0%, #0d47a1 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 115, 232, 0.4);
}

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

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

.btn-login i {
    font-size: 18px;
}

/* Demo Accounts */
.demo-accounts {
    margin-top: 30px;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    border: 2px solid #e0e0e0;
}

.demo-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
}

.demo-header i {
    color: #1A73E8;
    font-size: 18px;
}

.demo-header h4 {
    font-size: 14px;
    color: #333;
    margin: 0;
    font-weight: 600;
}

.demo-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.demo-account-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.demo-account-item:hover {
    background: #e3f2fd;
    border-color: #1A73E8;
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(26, 115, 232, 0.2);
}

.demo-account-item i {
    font-size: 20px;
    color: #1A73E8;
    width: 24px;
    text-align: center;
}

.demo-account-item div {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.demo-account-item strong {
    color: #333;
    font-weight: 600;
    font-size: 14px;
}

.demo-account-item span {
    color: #666;
    font-size: 12px;
}

/* Login Footer */
.login-footer {
    margin-top: 25px;
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.login-footer p {
    color: #666;
    font-size: 14px;
    margin: 0;
}

.login-footer a {
    color: #1A73E8;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.login-footer a:hover {
    color: #1557B0;
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 480px) {
    .login-box {
        padding: 35px 25px;
    }
    
    .login-header h2 {
        font-size: 24px;
    }
    
    .logo-icon {
        width: 60px;
        height: 60px;
    }
    
    .logo-icon i {
        font-size: 30px;
    }
    
    .demo-accounts {
        padding: 15px;
    }
    
    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* Select option styling */
select option {
    padding: 10px;
    font-size: 15px;
}

select option:first-child {
    color: #999;
}
