@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@300;400;500;600;700&display=swap');

:root {
    --yamaha-purple: #4B1E6E;
    --header-height: 72px;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Oswald', sans-serif;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ---------- Header / Nav ---------- */

.site-header {
    background: #ffffff;
    height: var(--header-height);
    display: flex;
    align-items: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    position: relative;
    z-index: 10;
}

.site-header__inner {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-header__logo img {
    display: block;
    height: 28px;
    width: auto;
}

/* ---------- Page background ---------- */

.page-bg {
    flex: 1;
    background-image: url('../assets/Yamaha-BG.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

/* ---------- Splash / welcome page ---------- */

.splash {
    width: 100%;
    max-width: 640px;
    text-align: center;
}

.splash__title {
    color: #ffffff;
    font-weight: 700;
    font-size: clamp(48px, 9vw, 96px);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0 0 40px;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}

.splash__subtitle {
    color: #ffffff;
    font-weight: 400;
    font-size: 18px;
    margin: -24px 0 32px;
    opacity: 0.9;
}

.email-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.email-form__input {
    width: 100%;
    padding: 22px 28px;
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    font-size: 24px;
    text-align: center;
    border: none;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.95);
    color: #1a1a1a;
    outline: none;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
}

.email-form__input::placeholder {
    color: #8a8a8a;
    font-weight: 400;
}

.email-form__input:focus {
    box-shadow: 0 0 0 3px var(--yamaha-purple), 0 6px 24px rgba(0, 0, 0, 0.2);
}

.email-form__submit {
    padding: 20px 28px;
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: 20px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border: none;
    border-radius: 6px;
    background: #ffffff;
    color: var(--yamaha-purple);
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.1s ease;
}

.email-form__submit:hover {
    background: var(--yamaha-purple);
    color: #ffffff;
}

.email-form__submit:active {
    transform: scale(0.98);
}

.form-error {
    color: #fff;
    background: rgba(180, 20, 40, 0.85);
    border-radius: 6px;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
}

/* ---------- Viewing page ---------- */

.viewing {
    width: 100%;
    max-width: 1100px;
}

.viewing__title {
    color: #ffffff;
    font-weight: 700;
    font-size: clamp(28px, 5vw, 44px);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    margin: 0 0 28px;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}

.video-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 */
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.35);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ---------- Buttons ---------- */

.btn {
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    padding: 10px 22px;
    border-radius: 4px;
    display: inline-block;
    transition: background 0.2s ease, color 0.2s ease;
}

.btn-logout {
    background: var(--yamaha-purple);
    color: #ffffff;
}

.btn-logout:hover {
    background: #37154f;
}

/* ---------- Responsive ---------- */

@media (max-width: 600px) {
    .site-header__inner {
        padding: 0 20px;
    }

    .email-form__input,
    .email-form__submit {
        font-size: 18px;
        padding: 18px 20px;
    }
}
