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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #f5f5f5;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 420px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.header {
    background: linear-gradient(135deg, #b9eaff 0%, #b9d3ff 100%);
    padding: 30px 20px;
    text-align: center;
}

.header h1 {
    color: white;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 1px;
}

.app-logo {
    height: 32px;
    width: auto;
    display: inline-block;
    vertical-align: middle;
}

.inline-logo {
    height: 1em;
    width: auto;
    display: inline-block;
    vertical-align: -0.15em;
}

.tagline {
    color: rgba(0, 0, 0, 0.85);
    font-size: 14px;
    margin-top: 6px;
    margin-bottom: 4px;
    font-style: italic;
    font-weight: 400;
}

.subtitle {
    color: #000000;
    font-size: 18px;
    margin-top: 8px;
}

.form-container {
    padding: 30px 25px;
}

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

.already-have-account,
.login-link-row {
    margin: 0;
    font-size: 13px;
    text-align: center;
}

.login-link-row a {
    color: #2a5298;
    text-decoration: underline;
}

.signup-choice-note {
    margin: 0 0 20px;
    font-size: 14px;
    line-height: 1.5;
    color: #444;
}

.signup-choice-link {
    color: #2a5298;
    font-weight: 700;
    text-decoration: underline;
}

.signup-choice-link:hover {
    color: #1e3c72;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="tel"],
.form-group input[type="number"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #000000;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2a5298;
}

.form-group textarea {
    resize: vertical;
}

.field-hint {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

.terms-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
}

.terms-row input[type="checkbox"] {
    flex-shrink: 0;
    margin-top: 3px;
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #2a5298;
}

.terms-row label {
    font-size: 13px;
    color: #444;
    line-height: 1.5;
    cursor: pointer;
}

.terms-link {
    color: #2a5298;
    text-decoration: underline;
}

.terms-link:hover {
    color: #1e3c72;
}

.button-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 30px;
}

.btn {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(30, 60, 114, 0.3);
}

.btn-secondary {
    background: #f0f0f0;
    color: #333;
}

.btn-secondary:hover {
    background: #e0e0e0;
}

/* User Type Toggle */
.user-type-section {
    margin-top: 20px;
    margin-bottom: 30px;
    text-align: center;
}

.user-type-label {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.user-type-hint {
    font-size: 13px;
    color: #999;
    font-style: italic;
    text-align: center;
    margin-bottom: 16px;
}

.toggle-container {
    display: flex;
    background: linear-gradient(135deg, #87CEEB 0%, #5DADE2 100%);
    border-radius: 50px;
    padding: 8px;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(93, 173, 226, 0.3);
}

.toggle-option {
    flex: 1;
    padding: 16px 24px;
    border: none;
    border-radius: 40px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.7);
}

.toggle-option.selected {
    background: white;
    color: #333;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.toggle-option:hover:not(.selected) {
    background: rgba(255, 255, 255, 0.5);
    color: white;
}

.toggle-option span {
    display: inline-block;
}

/* Alternating idle pulse animation — stops once a user has made a selection */
@keyframes pulse-option {

    0%,
    100% {
        background: rgba(255, 255, 255, 0.3);
        color: rgba(255, 255, 255, 0.7);
        box-shadow: none;
    }

    20% {
        background: white;
        color: #333;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }

    40% {
        background: rgba(255, 255, 255, 0.3);
        color: rgba(255, 255, 255, 0.7);
        box-shadow: none;
    }
}

#toggle-container:not(.user-selected) .toggle-option[data-type="swimmer"] {
    animation: pulse-option 4s ease-in-out infinite;
}

#toggle-container:not(.user-selected) .toggle-option[data-type="teacher"] {
    animation: pulse-option 4s ease-in-out infinite;
    animation-delay: 2s;
}

/* === Check Email Panel === */
.check-email-panel {
    padding: 36px 25px;
    text-align: center;
}

.check-email-icon {
    font-size: 52px;
    margin-bottom: 16px;
}

.check-email-title {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin-bottom: 12px;
}

.check-email-body {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
}

.check-email-resend {
    font-size: 13px;
    color: #888;
}

.check-email-link {
    color: #42a5f5;
    text-decoration: none;
}

.check-email-link:hover {
    text-decoration: underline;
}