/* Public Page Hero Banner Styles - for login, register, and other public pages */

:root {
    --church-primary: rgb(70, 130, 180);      /* Steel Blue */
    --church-primary-dark: rgb(47, 95, 143);  /* Darker Steel Blue */
}

/* Hero banner container - narrow banner for public pages */
.public-hero-banner {
    position: relative;
    min-height: 25vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    text-align: center;
    padding: 1.5rem 1rem 2rem 1rem;
    background-image: url('https://pub-d49de327dd4940439ef4577243dd9a71.r2.dev/kyrkstoten_banner.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Gradient overlay */
.public-hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        rgba(47, 95, 143, 0.75),    /* church-primary-dark */
        rgba(70, 130, 180, 0.70)    /* church-primary */
    );
    z-index: 1;
}

/* Container for content card - positioned to overlap banner */
.public-content-container {
    position: relative;
    max-width: 500px;
    margin: -10rem auto 3rem auto;
    padding: 0 1rem;
    z-index: 20;
}

/* Page title above content card - positioned on top of banner */
.public-page-title {
    text-align: center;
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}

/* Content card - elevated white card */
.public-content-card {
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2), 0 8px 10px -6px rgba(0, 0, 0, 0.2);
    border: none;
    overflow: hidden;
}

/* Card body */
.public-content-card-body {
    padding: 2rem;
}

/* Form labels */
.public-content-card-body .form-label {
    font-weight: 500;
    color: #495057;
    margin-bottom: 0.5rem;
}

/* Form inputs */
.public-content-card-body .form-control {
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    padding: 0.625rem 0.75rem;
}

.public-content-card-body .form-control:focus {
    border-color: var(--church-primary);
    box-shadow: 0 0 0 0.2rem rgba(70, 130, 180, 0.25);
}

/* Primary button - gradient background */
button.public-btn-primary.btn {
    background: linear-gradient(135deg, rgb(70, 130, 180) 0%, rgb(47, 95, 143) 100%) !important;
    background-color: rgb(70, 130, 180) !important;
    border: none !important;
    color: #ffffff !important;
    font-weight: 600;
    padding: 0.75rem;
    transition: all 0.2s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

button.public-btn-primary.btn:hover,
button.public-btn-primary.btn:focus,
button.public-btn-primary.btn:active {
    background: linear-gradient(135deg, rgb(47, 95, 143) 0%, rgb(70, 130, 180) 100%) !important;
    background-color: rgb(47, 95, 143) !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.15), 0 4px 6px -2px rgba(0, 0, 0, 0.1);
}

button.public-btn-primary.btn i {
    color: #ffffff !important;
}

/* Links styling */
.public-content-card-body a {
    color: var(--church-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.public-content-card-body a:hover {
    color: var(--church-primary-dark);
    text-decoration: underline;
}

/* Divider */
.public-content-card-body hr {
    border-top: 1px solid #dee2e6;
    margin: 1.5rem 0;
}

/* Secondary button (outline) */
.btn-outline-secondary {
    color: #6c757d;
    border-color: #6c757d;
}

.btn-outline-secondary:hover {
    background-color: #6c757d;
    border-color: #6c757d;
    color: white;
}

/* Responsive adjustments for tablets */
@media (max-width: 768px) {
    .public-hero-banner {
        min-height: 22vh;
        padding: 1.25rem 1rem 1.75rem 1rem;
    }

    .public-content-container {
        margin-top: -9rem;
    }

    .public-page-title {
        font-size: 2rem;
        margin-bottom: 1.25rem;
    }

    .public-content-card-body {
        padding: 1.5rem;
    }
}

/* Responsive adjustments for mobile */
@media (max-width: 576px) {
    .public-hero-banner {
        min-height: 20vh;
        padding: 1rem 0.75rem 1.5rem 0.75rem;
    }

    .public-content-container {
        margin-top: -8rem;
        padding: 0 0.75rem;
    }

    .public-page-title {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }

    .public-content-card-body {
        padding: 1.25rem;
    }
}
