/**
 * Authentication Styles
 * 
 * Custom styles for authentication pages (login, register, etc.)
 * for the HYKE AMSTERDAM e-commerce website.
 */

/* Login/Register Card Styling */
.auth-card {
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.auth-card:hover {
    transform: translateY(-5px);
}

/* Form Input Styling */
.auth-form .form-control {
    border-radius: 0;
    border-right: none;
}

.auth-form .form-control:focus {
    box-shadow: none;
    border-color: #ced4da;
}

.auth-form .input-group-text {
    border-radius: 0;
    border-left: none;
    background-color: #fff;
}

.auth-form .btn-outline-secondary {
    border-radius: 0;
    border-left: none;
}

.auth-form .btn-outline-secondary:hover,
.auth-form .btn-outline-secondary:focus {
    background-color: transparent;
    color: var(--primary);
    box-shadow: none;
}

/* Submit Button Styling */
.auth-form .btn-dark {
    border-radius: 0;
    padding: 12px;
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.auth-form .btn-dark:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Form Section Headings */
.auth-form h5 {
    font-weight: 600;
    color: #333;
    margin-top: 1.5rem;
}

/* Address Results Container */
.address-results {
    position: relative;
    z-index: 1000;
}

.address-results .list-group {
    max-height: 250px;
    overflow-y: auto;
    border-radius: 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.address-results .list-group-item {
    padding: 0.75rem 1rem;
    border-left: none;
    border-right: none;
    transition: background-color 0.2s ease;
}

.address-results .list-group-item:hover {
    background-color: #f8f9fa;
}

/* Form Layout Spacing */
.auth-form .row {
    margin-left: -10px;
    margin-right: -10px;
}

.auth-form .row > div {
    padding-left: 10px;
    padding-right: 10px;
}

/* Password Field Styling */
.auth-form #togglePassword {
    color: #6c757d;
    border-color: #ced4da;
}

.auth-form #togglePassword:hover {
    color: #000;
}

/* Form Check Styling */
.auth-form .form-check-input:checked {
    background-color: #212529;
    border-color: #212529;
}

/* Responsive Styling */
@media (max-width: 767.98px) {
    .auth-card {
        border-radius: 0;
    }
    
    .auth-card:hover {
        transform: none;
    }
    
    .auth-form .btn-dark:hover {
        transform: none;
    }
}

/* Signup Form Specific Styling */
#signupForm {
    position: relative;
}

#signupForm .form-text {
    font-size: 0.75rem;
    color: #6c757d;
}

#signupForm .form-label {
    font-weight: 500;
    margin-bottom: 0.3rem;
}

/* Animation for form success */
@keyframes formSuccess {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.form-success {
    animation: formSuccess 0.5s ease;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .auth-card {
        border-radius: 0;
        box-shadow: none !important;
    }
    
    .auth-form .btn-dark {
        padding: 10px;
    }
}

/* Animation for form elements */
.auth-form .form-control,
.auth-form .btn {
    animation: fadeIn 0.5s ease-in-out;
}

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

/* Custom checkbox styling */
.auth-form .form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

/* Links styling */
.auth-form a {
    color: var(--primary);
    transition: color 0.3s ease;
}

.auth-form a:hover {
    color: var(--secondary);
}

/* New Styles for a Modern Look */
body.auth-page {
    background-color: #f8f9fa; /* Light gray background for the page */
    /* If you want a background image for auth pages:
    background-image: url('../images/auth-background.jpg'); 
    background-size: cover;
    background-position: center;
    */
    display: flex;
    align-items: center; /* Vertically center */
    min-height: 100vh; /* Full viewport height */
    padding-top: 0; /* Remove padding if header is transparent and fixed */
}

.auth-container {
    max-width: 450px; /* Limit width of the login box */
    width: 100%;
    margin: auto; /* Center the container */
}

.auth-card {
    border-radius: 15px; /* More rounded corners */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1); /* Softer, more pronounced shadow */
    border: none; /* Remove default border */
    overflow: hidden; /* Ensures child elements conform to border radius */
}

.auth-card .card-body {
    padding: 2.5rem; /* Increase padding */
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header img.logo {
    max-width: 150px; /* Adjust logo size */
    margin-bottom: 1rem;
}

.auth-header .greeting {
    font-size: 1.75rem;
    font-weight: 600;
    color: #333;
}

.auth-header .sub-greeting {
    font-size: 1rem;
    color: #6c757d;
}

.auth-form .form-label {
    font-weight: 500;
    color: #495057;
}

.auth-form .form-control {
    border-radius: 8px; /* Rounded inputs */
    border: 1px solid #ced4da;
    padding: 0.75rem 1rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.auth-form .form-control:focus {
    border-color: var(--primary-dark); /* Use a theme color */
    box-shadow: 0 0 0 0.25rem rgba(var(--primary-rgb), 0.25); /* Focus ring with theme color */
}

.auth-form .input-group .form-control {
    border-right: 1px solid #ced4da; /* Ensure right border is visible for grouped inputs */
}
.auth-form .input-group-text {
    background-color: #e9ecef; /* Slightly different background for icons */
    border: 1px solid #ced4da;
    border-right: none; /* Remove right border as input has left */
    border-radius: 8px 0 0 8px; /* Match input rounding on left */
}
.auth-form .input-group .btn-outline-secondary { /* For password toggle */
    border-radius: 0 8px 8px 0; /* Match input rounding on right */
    border-left: none;
}


.auth-form .btn-primary, /* Changed from btn-dark for potentially better theme consistency */
.auth-form .btn-dark { 
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    text-transform: none; /* Or keep uppercase if preferred */
    letter-spacing: 0.5px;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.auth-form .btn-primary:hover,
.auth-form .btn-dark:hover {
    transform: translateY(-2px);
    /* background-color: var(--primary-darker); Consider defining this color */
}

.auth-form .form-check-input {
    border-radius: 4px;
    border: 1px solid #adb5bd;
}
.auth-form .form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}
.auth-form .form-check-label {
    font-size: 0.9rem;
    color: #495057;
}

.auth-links {
    text-align: center;
    margin-top: 1.5rem;
}
.auth-links a {
    font-size: 0.9rem;
    color: var(--primary);
    text-decoration: none;
}
.auth-links a:hover {
    text-decoration: underline;
    color: var(--primary-dark);
}

.auth-footer-links {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.9rem;
}
.auth-footer-links p {
    margin-bottom: 0.5rem;
}
.auth-footer-links a {
    color: #6c757d;
    text-decoration: none;
    margin: 0 0.5rem;
}
.auth-footer-links a:hover {
    color: var(--primary);
    text-decoration: underline;
}

/* Alert styling */
.alert {
    border-radius: 8px;
    padding: 1rem;
    font-size: 0.95rem;
}

/* Ensure primary color variables are defined, e.g., in your main style.css or header */
:root {
    --primary: #007bff; /* Example primary color */
    --primary-dark: #0056b3;
    --primary-rgb: 0, 123, 255; /* For RGBA box shadow */
    --secondary: #6c757d; /* Example secondary color */
}

/* Responsive adjustments for smaller screens */
@media (max-width: 576px) {
    .auth-card .card-body {
        padding: 1.5rem;
    }
    .auth-header .greeting {
        font-size: 1.5rem;
    }
    .auth-header .sub-greeting {
        font-size: 0.9rem;
    }
    .auth-form .btn-primary,
    .auth-form .btn-dark {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
}