@import url("variables.css");
@import url("components.css");

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {

    background: var(--background);

    color: var(--text);

    font-family: "Inter", sans-serif;

    line-height: 1.6;

}

a {

    color: inherit;

    text-decoration: none;

}

img {

    display: block;

    max-width: 100%;

}

/*
 * ------------------------------------------------------------
 * ADMIN ACTIVITY LOG
 * ------------------------------------------------------------
 */

.admin-page {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.admin-page-header {
    margin-bottom: 20px;
}

.admin-page-header h1 {
    margin: 0 0 6px;
}

.admin-page-header p {
    margin: 0;
    opacity: 0.7;
}

.activity-log {
    width: 100%;
}

.activity-table-wrapper {
    width: 100%;
    overflow-x: auto;
}

.activity-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.activity-table th,
.activity-table td {
    padding: 12px 14px;
    text-align: left;
    vertical-align: middle;
    border-bottom: 1px solid rgba(128, 128, 128, 0.2);
}

.activity-table th {
    font-weight: 600;
    white-space: nowrap;
}

.activity-table td:first-child {
    white-space: nowrap;
}

.activity-table td:nth-child(4) {
    white-space: nowrap;
}

.activity-table code {
    font-family: monospace;
    font-size: 13px;
}

.activity-action {
    font-weight: 600;
}

.activity-system {
    opacity: 0.65;
    font-style: italic;
}

.activity-empty {
    padding: 40px 20px;
    text-align: center;
    opacity: 0.7;
}

@media (max-width: 800px) {

    .activity-table {
        min-width: 900px;
    }

}


/*
 * ------------------------------------------------------------
 * ADMIN ACTIVITY POST OVERLAY
 * ------------------------------------------------------------
 */

.activity-view-post {
    margin-left: 14px;
    padding: 4px 9px;
    border: 0;
    border-radius: 6px;
    background: #eaf1ff;
    color: #2563eb;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.activity-view-post:hover {
    background: #dbe7ff;
}

.activity-post-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.activity-post-overlay.open {
    display: flex;
}

.activity-post-overlay-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
}

.activity-post-overlay-dialog {
    position: relative;
    z-index: 1;
    width: min(900px, 100%);
    max-height: 90vh;
    overflow-y: auto;
    padding: 24px;
    border-radius: 16px;
    background: white;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.activity-post-overlay-close {
    position: absolute;
    top: 10px;
    right: 14px;
    z-index: 2;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: #f1f3f5;
    color: #333;
    font-size: 27px;
    line-height: 1;
    cursor: pointer;
}

.activity-post-overlay-close:hover {
    background: #e2e5e8;
}

.activity-post-overlay-content {
    padding-top: 12px;
}

.activity-post-overlay-loading,
.activity-post-overlay-error {
    padding: 50px 20px;
    text-align: center;
    opacity: 0.7;
}

.activity-post-overlay .card {
    margin: 0;
    box-shadow: none;
}

/*
 * ------------------------------------------------------------
 * FEATURED YOUTUBE
 * ------------------------------------------------------------
 */

.featured-youtube {
    margin-bottom: 20px;
    overflow: hidden;
}

.featured-youtube-header {
    padding: 16px 20px;
}

.featured-youtube-header h2 {
    margin: 0;
    font-size: 18px;
}

.featured-youtube-player {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
}

.featured-youtube-player iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
/*
 * ------------------------------------------------------------
 * BAYBOOK LOGIN PAGE
 * ------------------------------------------------------------
 */

body.fullscreen-page {
    min-height: 100vh;
    overflow-x: hidden;
}

body.fullscreen-page .site-stats,
body.fullscreen-page .navbar {
    display: none;
}

body.fullscreen-page main.container {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

.login-page {
    position: relative;

    min-height: 100vh;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    padding: 40px 20px;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 20% 20%,
            rgba(59, 130, 246, 0.28),
            transparent 35%
        ),
        radial-gradient(
            circle at 80% 80%,
            rgba(14, 116, 144, 0.22),
            transparent 35%
        ),
        linear-gradient(
            145deg,
            #071426 0%,
            #0d2744 45%,
            #164b72 72%,
            #071426 100%
        );
}

/*
 * Atmospheric glow behind the card.
 */

.login-page::before {
    content: "";

    position: absolute;

    width: 900px;
    height: 900px;

    left: 50%;
    top: 50%;

    transform:
        translate(-50%, -55%);

    background:
        radial-gradient(
            circle,
            rgba(96, 165, 250, 0.16),
            transparent 65%
        );

    pointer-events: none;
}

/*
 * Subtle star field.
 */

.login-page::after {
    content: "";

    position: absolute;
    inset: 0;

    opacity: 0.35;

    background-image:
        radial-gradient(
            circle,
            rgba(255,255,255,0.8) 1px,
            transparent 1px
        );

    background-size:
        120px 120px;

    background-position:
        15px 25px;

    pointer-events: none;
}

.login-card {
    position: relative;

    z-index: 2;

    width: min(
        520px,
        100%
    );

    padding:
        42px
        46px
        38px;

    background:
        rgba(255, 255, 255, 0.96);

    border:
        1px solid
        rgba(255, 255, 255, 0.8);

    border-radius: 22px;

    box-shadow:
        0 30px 80px
        rgba(0, 0, 0, 0.35),
        0 8px 25px
        rgba(0, 0, 0, 0.18);

    color: #10213a;
}

/*
 * Logo / branding.
 */

.login-brand {
    text-align: center;
}

.login-logo {
    width: 105px;
    height: 105px;

    margin: 0 auto 12px;

    object-fit: contain;

    border-radius: 50%;

    filter:
        drop-shadow(
            0 6px 12px
            rgba(0, 0, 0, 0.14)
        );
}

.login-brand-name {
    font-size: 46px;
    line-height: 1;

    font-weight: 700;

    letter-spacing: -2px;

    color: #101d32;
}

.login-brand-name span {
    color: #2563eb;
}

.login-tagline {
    margin-top: 10px;

    font-size: 16px;

    color: #64748b;

    letter-spacing: 0.2px;
}

/*
 * Divider.
 */

.login-divider {
    display: flex;
    align-items: center;

    gap: 18px;

    margin:
        28px 0
        24px;

    color: #9db4d0;
}

.login-divider::before,
.login-divider::after {
    content: "";

    flex: 1;

    height: 1px;

    background:
        #d9e2ee;
}

.login-divider span {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 34px;
    height: 34px;

    border-radius: 50%;

    background:
        #edf3fa;

    color:
        #6684a8;

    font-size: 14px;
}

/*
 * Heading.
 */

.login-heading {
    text-align: center;

    margin-bottom: 28px;
}

.login-heading h1 {
    margin: 0;

    font-size: 28px;

    line-height: 1.2;

    color: #10213a;
}

.login-heading p {
    margin:
        8px 0 0;

    color: #64748b;

    font-size: 15px;
}

/*
 * Messages.
 */

.login-message {
    margin-bottom: 20px;

    padding:
        11px 14px;

    border-radius: 9px;

    font-size: 14px;

    text-align: center;
}

.login-message-success {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

.login-message-error {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

/*
 * Form.
 */

.login-form {
    display: flex;

    flex-direction: column;

    gap: 22px;
}

.login-field {
    display: flex;

    flex-direction: column;

    gap: 8px;
}

.login-field label {
    font-size: 15px;

    font-weight: 600;

    color: #17253b;
}

.login-input-wrap {
    position: relative;
}

.login-input-icon {
    position: absolute;

    left: 16px;
    top: 50%;

    transform:
        translateY(-50%);

    color: #7b8da5;

    font-size: 17px;

    pointer-events: none;
}

.login-input-wrap input {
    width: 100%;

    height: 56px;

    padding:
        0 16px
        0 48px;

    border:
        1px solid
        #ccd7e5;

    border-radius: 10px;

    background: #ffffff;

    color: #17253b;

    font-family: inherit;

    font-size: 16px;

    outline: none;

    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease,
        background 0.15s ease;
}

.login-input-wrap input::placeholder {
    color: #9aa8ba;
}

.login-input-wrap input:focus {
    border-color: #3b82f6;

    background: #ffffff;

    box-shadow:
        0 0 0 4px
        rgba(59, 130, 246, 0.12);
}

/*
 * Remember me.
 */

.login-options {
    display: flex;

    align-items: center;

    justify-content: space-between;

    margin-top: -5px;
}

.login-remember {
    display: flex;

    align-items: center;

    gap: 9px;

    color: #34445a;

    font-size: 14px;

    cursor: pointer;
}

.login-remember input {
    width: 17px;
    height: 17px;

    accent-color: #2563eb;

    cursor: pointer;
}

/*
 * Sign in button.
 */

.login-submit {
    width: 100%;

    height: 56px;

    border: 0;

    border-radius: 10px;

    background:
        linear-gradient(
            135deg,
            #173da8 0%,
            #2563eb 55%,
            #1680f5 100%
        );

    color: #ffffff;

    font-family: inherit;

    font-size: 17px;

    font-weight: 600;

    cursor: pointer;

    box-shadow:
        0 8px 18px
        rgba(37, 99, 235, 0.28);

    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease,
        filter 0.15s ease;
}

.login-submit span {
    display: inline-block;

    margin-right: 8px;

    font-size: 21px;

    transition:
        transform 0.15s ease;
}

.login-submit:hover {
    filter: brightness(1.05);

    box-shadow:
        0 11px 24px
        rgba(37, 99, 235, 0.35);

    transform:
        translateY(-1px);
}

.login-submit:hover span {
    transform:
        translateX(3px);
}

.login-submit:active {
    transform:
        translateY(0);

    box-shadow:
        0 5px 12px
        rgba(37, 99, 235, 0.25);
}

/*
 * Registration link.
 */

.login-register {
    margin-top: 26px;

    text-align: center;

    color: #52637a;

    font-size: 15px;
}

.login-register a {
    color: #2563eb;

    font-weight: 600;

    margin-left: 4px;
}

.login-register a:hover {
    text-decoration: underline;
}

/*
 * Footer.
 */

.login-footer {
    position: relative;

    z-index: 2;

    margin-top: 22px;

    color:
        rgba(255, 255, 255, 0.72);

    font-size: 13px;

    text-align: center;
}

/*
 * Mobile.
 */

@media (max-width: 600px) {

    .login-page {
        padding:
            24px 14px;
    }

    .login-card {
        padding:
            32px 24px
            28px;

        border-radius: 18px;
    }

    .login-logo {
        width: 82px;
        height: 82px;
    }

    .login-brand-name {
        font-size: 38px;
    }

    .login-tagline {
        font-size: 14px;
    }

    .login-heading h1 {
        font-size: 25px;
    }

    .login-divider {
        margin:
            23px 0
            20px;
    }

}

/*
 * ------------------------------------------------------------
 * BAYBOOK LANDING PAGE
 * ------------------------------------------------------------
 */

.home-hero {

    position: relative;

    min-height: calc(100vh - 72px);

    display: flex;

    align-items: center;

    justify-content: center;

    overflow: hidden;

    padding: 70px 24px 100px;

    text-align: center;

}


.home-hero-content {

    position: relative;

    z-index: 2;

    width: 100%;

    max-width: 780px;

}


.home-logo {

    width: 120px;

    height: 120px;

    object-fit: contain;

    margin: 0 auto 24px;

    filter:
        drop-shadow(
            0 12px 30px rgba(0, 0, 0, .25)
        );

}


.home-badge {

    display: inline-flex;

    align-items: center;

    padding: 7px 14px;

    margin-bottom: 18px;

    border: 1px solid var(--border);

    border-radius: 999px;

    background: var(--surface);

    color: var(--muted);

    font-size: 14px;

    font-weight: 600;

    box-shadow: var(--shadow-sm);

}


.home-hero h1 {

    margin: 0;

    color: var(--text);

    font-size: clamp(42px, 7vw, 68px);

    line-height: 1.05;

    letter-spacing: -2px;

}


.home-tagline {

    max-width: 620px;

    margin: 22px auto 0;

    color: var(--muted);

    font-size: 19px;

    line-height: 1.7;

}


.home-actions {

    display: flex;

    justify-content: center;

    align-items: center;

    gap: 14px;

    margin-top: 34px;

}


.home-primary-button,
.home-secondary-button {

    min-width: 150px;

    text-align: center;

}


.home-primary-button {

    box-shadow:
        0 8px 24px
        rgba(37, 99, 235, .28);

}


.home-features {

    display: flex;

    justify-content: center;

    gap: 14px;

    margin-top: 55px;

}


.home-feature {

    display: flex;

    flex-direction: column;

    align-items: center;

    min-width: 150px;

    padding: 18px 20px;

    border: 1px solid var(--border);

    border-radius: 16px;

    background: var(--surface);

    box-shadow: var(--shadow);

}


.home-feature span {

    font-size: 25px;

    margin-bottom: 6px;

}


.home-feature strong {

    color: var(--text);

    font-size: 15px;

}


.home-feature small {

    margin-top: 2px;

    color: var(--muted);

    font-size: 12px;

}


/*
 * ------------------------------------------------------------
 * LANDING PAGE BACKGROUND GLOWS
 * ------------------------------------------------------------
 */

.home-hero-glow {

    position: absolute;

    width: 500px;

    height: 500px;

    border-radius: 50%;

    pointer-events: none;

    filter: blur(90px);

    opacity: .22;

}


.home-hero-glow-one {

    top: -250px;

    left: -150px;

    background: var(--primary);

}


.home-hero-glow-two {

    right: -180px;

    bottom: -280px;

    background: #60a5fa;

}


/*
 * ------------------------------------------------------------
 * DARK LANDING PAGE
 * ------------------------------------------------------------
 */

html[data-theme="dark"] .home-hero {

    background:
        radial-gradient(
            circle at 50% 35%,
            rgba(37, 99, 235, .10),
            transparent 45%
        );

}


html[data-theme="dark"] .home-hero h1 {

    text-shadow:
        0 0 35px rgba(59, 130, 246, .18);

}


html[data-theme="dark"] .home-feature {

    background:
        rgba(18, 34, 56, .82);

    backdrop-filter: blur(10px);

}


@media (max-width: 700px) {

    .home-hero {

        min-height: calc(100vh - 60px);

        padding:
            50px 20px 70px;

    }


    .home-logo {

        width: 95px;

        height: 95px;

    }


    .home-tagline {

        font-size: 17px;

    }


    .home-actions {

        flex-direction: column;

    }


    .home-primary-button,
    .home-secondary-button {

        width: 100%;

        max-width: 280px;

    }


    .home-features {

        flex-direction: column;

        align-items: center;

        margin-top: 40px;

    }


    .home-feature {

        width: 100%;

        max-width: 300px;

    }

}

/*
 * ------------------------------------------------------------
 * AUTH PAGES
 * ------------------------------------------------------------
 */

.auth-page {

    min-height: calc(100vh - 72px);

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 60px 20px;

}


.auth-card {

    position: relative;

    width: 100%;

    max-width: 460px;

    padding: 42px;

    border: 1px solid var(--border);

    border-radius: 22px;

    background: var(--surface);

    box-shadow: var(--shadow);

}


.auth-logo {

    width: 82px;

    height: 82px;

    object-fit: contain;

    margin: 0 auto 20px;

    filter:
        drop-shadow(
            0 8px 20px rgba(0, 0, 0, .2)
        );

}


.auth-card h1 {

    margin: 0;

    text-align: center;

    color: var(--text);

    font-size: 32px;

    line-height: 1.2;

}


.auth-subtitle {

    margin: 10px 0 30px;

    color: var(--muted);

    text-align: center;

}


.auth-form {

    display: flex;

    flex-direction: column;

    gap: 20px;

}


.auth-field {

    display: flex;

    flex-direction: column;

}


.auth-field label {

    margin-bottom: 4px;

    color: var(--text);

    font-weight: 600;

}


.auth-help {

    margin-bottom: 8px;

    color: var(--muted);

    font-size: 13px;

}


.auth-submit {

    width: 100%;

    margin-top: 6px;

    padding: 14px 22px;

    font-size: 16px;

    box-shadow:
        0 8px 24px
        rgba(37, 99, 235, .25);

}


.auth-footer {

    margin-top: 26px;

    padding-top: 22px;

    border-top: 1px solid var(--border);

    color: var(--muted);

    text-align: center;

    font-size: 14px;

}


.auth-footer a {

    margin-left: 4px;

    color: var(--primary);

    font-weight: 600;

}


.auth-footer a:hover {

    color: var(--primary-hover);

}


.auth-message {

    margin-bottom: 22px;

    padding: 12px 14px;

    border-radius: 10px;

    font-size: 14px;

}


.auth-error {

    border: 1px solid #ef4444;

    background: rgba(239, 68, 68, .10);

    color: #f87171;

}


.auth-success {

    border: 1px solid #22c55e;

    background: rgba(34, 197, 94, .10);

    color: #4ade80;

}


html[data-theme="dark"] .auth-card {

    background:
        rgba(18, 34, 56, .88);

    backdrop-filter: blur(12px);

}


@media (max-width: 600px) {

    .auth-page {

        padding:
            35px 16px;

    }


    .auth-card {

        padding: 30px 22px;

        border-radius: 18px;

    }


    .auth-card h1 {

        font-size: 28px;

    }

}
