/* ============================================
   Login Page Styles
   ============================================ */

/* Page Wrapper */
.login-page-wrapper {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow: hidden;
    background: #f8f9fa;
}

/* Background Image with Overlay */
.login-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Background image URL is set inline in the blade template */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

.login-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.9) 0%, rgba(37, 99, 235, 0.9) 100%);
    z-index: 1;
}

/* Login Container */
.login-container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 450px;
}

/* Register Container - Wider for more fields */
.register-container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 520px;
}

/* Login Card */
.login-card {
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.1);
    border: none;
    overflow: hidden;
    animation: slideUp 0.5s ease-out;
}

/* Register Card - Better styling */
.register-card {
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.1);
    border: none;
    overflow: hidden;
    animation: slideUp 0.5s ease-out;
}

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

/* Login Header */
.login-header {
    background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
    padding: 30px;
    text-align: center;
    color: white;
}

.login-header .logo {
    margin-bottom: 15px;
    height: 45px;
    width: auto;
    display: block;
}

.login-header h4 {
    color: white;
    font-weight: 600;
    margin: 0;
    font-size: 1.5rem;
}

.login-header p {
    color: rgba(255, 255, 255, 0.9);
    margin: 5px 0 0 0;
    font-size: 0.9rem;
}

/* Login Body */
.login-body {
    padding: 40px;
    background: #ffffff;
}

/* Register Body - More padding for better spacing */
.register-body {
    padding: 40px;
    background: #ffffff;
}

/* Form Elements */
.form-label {
    font-weight: 500;
    color: #495057;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.form-control {
    border-radius: 12px;
    border: 2px solid #e8ecf0;
    padding: 14px 16px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    background: #f8f9fa;
}

.form-control:focus {
    border-color: #3B82F6;
    box-shadow: 0 0 0 4px rgba(57, 108, 240, 0.1);
    outline: none;
    background: #ffffff;
}

.form-control::placeholder {
    color: #adb5bd;
}

/* Select and Textarea styling */
.form-select {
    border-radius: 12px;
    border: 2px solid #e8ecf0;
    padding: 14px 16px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    background: #f8f9fa;
}

.form-select:focus {
    border-color: #3B82F6;
    box-shadow: 0 0 0 4px rgba(57, 108, 240, 0.1);
    outline: none;
    background: #ffffff;
}

textarea.form-control {
    border-radius: 12px;
    border: 2px solid #e8ecf0;
    padding: 14px 16px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    background: #f8f9fa;
    resize: vertical;
}

textarea.form-control:focus {
    border-color: #3B82F6;
    box-shadow: 0 0 0 4px rgba(57, 108, 240, 0.1);
    outline: none;
    background: #ffffff;
}

/* Input Group Buttons */
.input-group .btn-outline-primary {
    border-radius: 0 12px 12px 0;
    border: 2px solid #e8ecf0;
    border-left: none;
    padding: 14px 16px;
    white-space: nowrap;
    font-size: 0.9rem;
}

.input-group .btn-outline-primary:hover {
    background: #3B82F6;
    border-color: #3B82F6;
    color: white;
}

.input-group textarea {
    border-radius: 12px 0 0 12px;
}

.form-check-label {
    color: #6c757d;
    font-size: 0.9rem;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
    border: none;
    border-radius: 10px;
    padding: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(57, 108, 240, 0.3);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(57, 108, 240, 0.4);
    color: white;
}

.btn-soft-primary {
    border-radius: 10px;
    padding: 10px;
    transition: all 0.3s ease;
}

.btn-soft-primary:hover {
    transform: translateY(-2px);
}

/* Links */
.forgot-password-link {
    color: #3B82F6;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.forgot-password-link:hover {
    color: #2563EB;
}

.signup-link {
    color: #3B82F6;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.signup-link:hover {
    color: #2563EB;
}

/* Divider */
.divider {
    position: relative;
    text-align: center;
    margin: 20px 0;
}

.divider::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 1px;
    background: #e0e0e0;
}

.divider span {
    background: rgba(255, 255, 255, 0.95);
    padding: 0 15px;
    position: relative;
    color: #6c757d;
    font-size: 0.85rem;
}

/* Body Override */
body.login-page {
    overflow-x: hidden;
}

/* Responsive Design */
@media (max-width: 768px) {
    .login-body,
    .register-body {
        padding: 30px 25px;
    }
    
    .login-header {
        padding: 25px;
    }
    
    .login-page-wrapper {
        padding: 15px;
    }
    
    .login-container,
    .register-container {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .login-body,
    .register-body {
        padding: 25px 20px;
    }
    
    .login-header {
        padding: 20px;
    }
    
    .login-header h4 {
        font-size: 1.3rem;
    }
    
    .form-control {
        padding: 12px 14px;
    }
}
