﻿/* ===== Base & Typography ===== */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    color: #202124;
    background: #f8f9fa;
    overflow-x: hidden;
}

body {
    display: flex;
    flex-direction: column;
}

/* ===== Layout ===== */
.main-content {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 24px 12px 0;
}

/* ===== Cards ===== */
.card {
    background: #fff;
    border-radius: 12px;
    padding: 20px 22px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .08);
    max-width: 420px;
    width: 100%;
    margin-bottom: 12px;
    transition: box-shadow .2s;
}

    .card:hover {
        box-shadow: 0 2px 8px rgba(0, 0, 0, .1);
    }

.main-content > *:last-child {
    margin-bottom: 0 !important;
}

/* ===== Headings ===== */
h2 {
    font-size: 1.84rem; /* 1.6rem + 15% */
    font-weight: 500;
    color: #1a73e8;
    text-align: center;
    margin: 10px 0 6px;
}

p {
    font-size: 1.0925rem; /* .95rem + 15% */
    color: #5f6368;
    text-align: center;
    margin: 0 0 16px;
}

h3 {
    font-weight: 500;
    color: #1a73e8;
    font-size: 1.15rem; /* 1rem + 15% */
    margin: 0 0 8px;
    text-align: center;
    cursor: pointer;
    user-select: none;
}

/* ===== Form ===== */
label {
    font-size: 1.035rem; /* .9rem + 15% */
    color: #3c4043;
    margin-bottom: 4px;
}

input {
    font-size: 1.035rem; /* .9rem + 15% */
    color: #202124;
    width: 100%;
    border: 1px solid #dadce0;
    border-radius: 6px;
    padding: 7px 8px;
    background: #fff;
    transition: border-color .2s, box-shadow .2s;
}

    input:focus {
        border-color: #1a73e8;
        box-shadow: 0 0 0 2px rgba(26, 115, 232, .1);
        outline: none;
    }

.field-error {
    color: #d93025;
    font-size: 0.92rem; /* .8rem + 15% */
    margin-top: 3px;
}

/* ===== Buttons ===== */
button, .btn {
    cursor: pointer;
}

.btn-success {
    border-radius: 6px;
    padding: 9px 10px;
    font-weight: 500;
    font-size: 1.0925rem; /* .95rem + 15% */
    width: 100%;
    background: #1a73e8;
    color: #fff;
    border: none;
    transition: background-color .2s;
}

    .btn-success:hover {
        background: #1558c0;
    }

.btn-outline-secondary {
    border-radius: 6px;
    padding: 9px 10px;
    font-weight: 500;
    font-size: 1.0925rem; /* .95rem + 15% */
    width: 100%;
    color: #3c4043;
    border: 1px solid #dadce0;
    background: #fff;
}

    .btn-outline-secondary:hover {
        background: #f1f3f4;
    }

/* ===== Divider ===== */
.divider {
    text-align: center;
    margin: .9rem 0;
    color: #5f6368;
    font-size: 0.9775rem; /* .85rem + 15% */
    position: relative;
}

    .divider::before, .divider::after {
        content: "";
        position: absolute;
        top: 50%;
        width: 35%;
        height: 1px;
        background: #dadce0;
    }

    .divider::before {
        left: 0;
    }

    .divider::after {
        right: 0;
    }

/* ===== Lists ===== */
ul {
    margin: 0;
    padding-left: 20px;
    color: #3c4043;
    font-size: 1.035rem; /* .9rem + 15% */
}

    ul li {
        margin-bottom: 4px;
    }

/* ===== Messages ===== */
#registerMessage {
    margin-top: 10px;
    text-align: center;
    font-size: 1.035rem; /* .9rem + 15% */
    font-weight: 500;
    color: #188038;
}

/* ===== Background Rotator ===== */
.bg-rotator {
    position: fixed;
    inset: 0;
    z-index: -2;
    overflow: hidden;
}

    .bg-rotator img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        opacity: 0;
        animation: fadeZoom 30s infinite;
    }

@keyframes fadeZoom {
    0% {
        opacity: 0;
        transform: scale(1);
    }

    5% {
        opacity: 1;
    }

    30% {
        opacity: 1;
        transform: scale(1.05);
    }

    35% {
        opacity: 0;
    }

    100% {
        opacity: 0;
        transform: scale(1);
    }
}
