/* Request Access Page - Uses CSS variables from customTheme.css */

* {
    font-family: 'Poppins', sans-serif;
}

body {
    /* Full multi-stop theme gradient (dark slate → teals → cyan → amber → gold)
       layered under a darkening overlay so the card still pops. */
    background:
        linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.35)),
        var(--theme-gradient-full);
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 0;
    margin: 0;
}

/* Navbar takes its natural height at the top; nothing else needed. */

.request-access-container {
    width: 100%;
    max-width: 880px;
    align-self: center;   /* horizontally center this column-flex child */
    margin: auto;         /* fills remaining vertical space, vertically centering the card */
    padding: 20px;        /* breathing room (previously on body) */
    box-sizing: border-box;
}

.request-access-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: slideUp 0.5s ease-out;
    display: flex;
    align-items: stretch;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Left column: branding + intro + back-to-login */
.request-access-info {
    flex: 1 1 50%;
    background: var(--theme-gradient-header);
    color: white;
    padding: 44px 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

    .request-access-info::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="40" fill="rgba(255,255,255,0.1)"/></svg>');
        opacity: 0.1;
        pointer-events: none;
    }

    .request-access-info h1 {
        margin: 0 0 16px 0;
        font-size: 30px;
        font-weight: 700;
        position: relative;
    }

    .request-access-info .request-access-disclaimer-lead {
        margin: 0 0 10px 0;
        font-size: 16px;
        font-weight: 600;
        position: relative;
    }

    .request-access-info .request-access-disclaimer {
        margin: 0 0 24px 0;
        font-size: 14px;
        font-weight: 300;
        line-height: 1.55;
        opacity: 0.95;
        position: relative;
    }

    .request-access-info .back-to-login-btn {
        align-self: flex-start;
        background: rgba(255, 255, 255, 0.15);
        border: 1.5px solid rgba(255, 255, 255, 0.7);
        color: white;
        padding: 10px 20px;
        border-radius: 10px;
        font-size: 14px;
        font-weight: 600;
        text-decoration: none;
        transition: all 0.25s ease;
        position: relative;
    }

        .request-access-info .back-to-login-btn:hover {
            background: white;
            color: var(--theme-primary);
            transform: translateY(-1px);
            box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
        }

/* Right column: form */
.request-access-body {
    flex: 1 1 50%;
    padding: 36px 36px 28px;
}

    .request-access-body label {
        font-weight: 500;
        color: #333;
        margin-bottom: 6px;
        display: block;
        font-size: 13px;
    }

    .request-access-body input[type="text"],
    .request-access-body input[type="email"],
    .request-access-body textarea,
    .request-access-body .form-control {
        border-radius: 10px;
        border: 2px solid var(--theme-border);
        padding: 11px 16px;
        font-size: 14px;
        width: 100%;
        transition: all 0.3s ease;
        font-weight: 400;
        background: #fafafa;
    }

    .request-access-body textarea {
        resize: vertical;
        min-height: 100px;
    }

        .request-access-body input[type="text"]:focus,
        .request-access-body input[type="email"]:focus,
        .request-access-body textarea:focus,
        .request-access-body .form-control:focus {
            border-color: var(--theme-secondary);
            outline: none;
            box-shadow: 0 0 0 4px var(--theme-focus-ring);
            background: white;
        }

    .request-access-body button[type="submit"],
    .request-access-body .btn-primary {
        background: var(--theme-gradient-button);
        border: none;
        border-radius: 10px;
        color: white;
        padding: 13px;
        font-size: 15px;
        font-weight: 600;
        width: 100%;
        transition: all 0.3s ease;
        cursor: pointer;
        margin-top: 4px;
    }

        .request-access-body button[type="submit"]:hover,
        .request-access-body .btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 10px 25px var(--theme-shadow-hover);
        }

        .request-access-body button[type="submit"]:active,
        .request-access-body .btn-primary:active {
            transform: translateY(0);
        }

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

.text-danger,
.field-validation-error {
    color: #dc3545;
    font-size: 13px;
    margin-top: 6px;
    display: block;
}

.alert {
    border-radius: 10px;
    border: none;
    margin-bottom: 16px;
    padding: 12px 16px;
    font-size: 13px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
}

.alert-danger {
    background: #fee;
    color: #c33;
}

.alert strong {
    font-weight: 600;
}

.request-access-body a {
    color: var(--theme-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
    font-weight: 500;
}

    .request-access-body a:hover {
        color: var(--theme-primary);
    }

.char-count {
    font-size: 12px;
    color: #999;
    text-align: right;
    margin-top: 4px;
}

/* Stack columns on narrow viewports */
@media (max-width: 768px) {
    .request-access-container {
        max-width: 550px;
    }

    .request-access-card {
        flex-direction: column;
    }

    .request-access-info {
        padding: 36px 30px 30px;
        text-align: center;
        align-items: center;
    }

        .request-access-info h1 {
            font-size: 28px;
        }

        .request-access-info .back-to-login-btn {
            align-self: center;
        }

    .request-access-body {
        padding: 30px 25px 24px;
    }
}
