/* Login Page Styles */
/* Override body background for login page */
body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.login-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: transparent;
}

.login-box {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    max-width: 1000px;
    width: 100%;
    min-height: 600px;
    max-height: 80vh;
}

.info-column {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: white;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex: 1;
    min-height: 600px;
}

.info-content {
    text-align: center;
    width: 100%;
    max-width: 400px;
}

.logo-section {
    margin-bottom: 30px;
    display: block;
}

.logo-section img {
    max-width: 150px;
    margin-bottom: 20px;
}

.ttfi-logo-text {
    text-align: center;
    color: white;
    margin-bottom: 30px;
    display: block;
    width: 100%;
}

.ttfi-logo-text img {
    max-width: 250px;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.ttfi-logo-text h1 {
    font-size: 3rem;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    text-align: right;
}

.ttfi-logo-text p {
    font-size: 1rem;
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 300;
    text-align: right;
}

.info-header {
    text-align: center;
    margin-bottom: 40px;
}

.info-header img {
    max-width: 200px;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.info-header h2 {
    font-size: 28px;
    margin-bottom: 30px;
    font-weight: 600;
}

.info-items {
    text-align: left;
    width: 100%;
    display: block;
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    padding: 15px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
}

.info-item i {
    font-size: 24px;
    margin-right: 15px;
    width: 30px;
}

.info-item strong {
    display: block;
    margin-bottom: 5px;
    font-size: 16px;
}

.info-item p {
    margin: 0;
    opacity: 0.9;
    font-size: 14px;
}

.login-column {
    flex: 1;
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-form-container {
    width: 100%;
    max-width: 400px;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h2 {
    color: #333;
    font-size: 32px;
    margin-bottom: 10px;
    font-weight: 600;
}

.login-header p {
    color: #666;
    font-size: 16px;
}

.login-form {
    width: 100%;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
    font-size: 14px;
}

.input-group {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    z-index: 2;
}

.form-control {
    width: 100%;
    padding: 15px 15px 15px 45px;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-control:focus {
    outline: none;
    border-color: #ff6b6b;
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.remember-me {
    display: flex;
    align-items: center;
}

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

.checkbox-input {
    margin-right: 8px;
}

.forgot-link {
    color: #ff6b6b;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.forgot-link:hover {
    color: #ee5a24;
}

.btn {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 107, 107, 0.3);
}

.btn-block {
    display: block;
    width: 100%;
}

.login-footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e1e5e9;
}

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

.link-primary {
    color: #ff6b6b;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.link-primary:hover {
    color: #ee5a24;
}

/* Flash Messages */
.message {
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 1px solid;
}

.message.success {
    background: #f0fdf4;
    color: #27ae60;
    border-color: #bbf7d0;
}

.message.error {
    background: #fdf2f2;
    color: #e74c3c;
    border-color: #fecaca;
}

.message.info {
    background: #eff6ff;
    color: #3498db;
    border-color: #bfdbfe;
}

/* Responsive design */
@media (max-width: 768px) {
    .login-container {
        padding: 10px;
        min-height: 100vh;
    }
    
    .login-box {
        flex-direction: column;
        max-width: 400px;
        min-height: auto;
        max-height: 90vh;
    }
    
    .info-column {
        padding: 30px 20px;
        min-height: auto;
        flex: 1;
    }
    
    .ttfi-logo-text img {
        max-width: 200px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .login-column {
        padding: 30px 20px;
        flex: 1;
    }
    
    .info-header h2 {
        font-size: 24px;
    }
    
    .login-header h2 {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .login-container {
        padding: 5px;
        min-height: 100vh;
    }
    
    .login-box {
        max-width: 350px;
        max-height: 95vh;
    }
    
    .info-column {
        padding: 20px 15px;
        min-height: auto;
    }
    
    .ttfi-logo-text img {
        max-width: 150px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .login-column {
        padding: 20px 15px;
    }
    
    .info-item {
        padding: 12px;
        margin-bottom: 15px;
    }
    
    .info-item i {
        font-size: 20px;
        margin-right: 12px;
        width: 25px;
    }
    
    .info-item strong {
        font-size: 14px;
    }
    
    .info-item p {
        font-size: 12px;
    }
}

/* Form validation styles */
.form-control.error {
    border-color: #e74c3c;
}

.form-control.success {
    border-color: #27ae60;
}

/* Loading state */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Custom checkbox styling */
.checkbox-label input[type="checkbox"] {
    margin-right: 8px;
    transform: scale(1.2);
}

/* Focus styles for accessibility */
.form-control:focus,
.btn:focus {
    outline: 2px solid #ff6b6b;
    outline-offset: 2px;
}

/* Animation for form elements */
.form-group {
    animation: fadeInUp 0.6s ease-out;
}

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

/* Stagger animation for form groups */
.form-group:nth-child(1) { animation-delay: 0.1s; }
.form-group:nth-child(2) { animation-delay: 0.2s; }
.form-group:nth-child(3) { animation-delay: 0.3s; }
.form-group:nth-child(4) { animation-delay: 0.4s; }
.form-group:nth-child(5) { animation-delay: 0.5s; } 