/**
 * Beast Foodz Registration Form - Branded Styles
 * Matching the main site's dark premium design with gold gradients
 */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', 'Oxygen',
        'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
        sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: #111;
    color: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Navigation Bar (matching main site) */
.navbar {
    background: #111;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 60px;
    transition: filter 0.3s ease;
}

.logo:hover img {
    filter: brightness(1.2);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.nav-menu a:hover {
    background: rgba(255, 215, 0, 0.1);
    color: #f0a500;
}

.nav-menu a.active {
    background: linear-gradient(45deg, #FFD700, #FFA500);
    color: #111;
    font-weight: bold;
}

.nav-menu .material-icons {
    font-size: 20px;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #fff;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Registration Wrapper */
.registration-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: #111;
}

/* Container */
.registration-container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

/* Card */
.registration-card {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5),
                0 0 20px rgba(255, 215, 0, 0.1);
    padding: 50px 40px;
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Form Logo */
.form-logo {
    text-align: center;
    margin-bottom: 20px;
}

.form-logo img {
    height: 80px;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.3));
}

/* Title */
.registration-title {
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
    text-align: center;
    background: linear-gradient(45deg, #FFD700, #FFA500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.registration-subtitle {
    text-align: center;
    color: #ccc;
    margin-bottom: 30px;
    font-size: 16px;
}

/* Messages */
.message {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 24px;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.success-message {
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid #4caf50;
    color: #4caf50;
}

.error-message {
    background: rgba(244, 67, 54, 0.1);
    border: 1px solid #f44336;
    color: #f44336;
}

.message-icon {
    font-size: 24px;
    font-weight: bold;
    flex-shrink: 0;
}

.message-text {
    flex: 1;
    font-size: 14px;
    line-height: 1.5;
}

/* Form */
.registration-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Form Row */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Form Group */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Label */
.form-label {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-label .material-icons {
    font-size: 18px;
    color: #f0a500;
}

.required {
    color: #FFA500;
    font-size: 16px;
}

/* Inputs */
.form-input,
.form-select {
    width: 100%;
    padding: 14px 18px;
    font-size: 15px;
    font-family: inherit;
    border: 2px solid rgba(255, 215, 0, 0.2);
    border-radius: 12px;
    transition: all 0.3s ease;
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: #FFD700;
    background: rgba(0, 0, 0, 0.6);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.1),
                0 0 20px rgba(255, 215, 0, 0.2);
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.form-input.error,
.form-select.error {
    border-color: #f44336;
    background: rgba(244, 67, 54, 0.05);
}

.form-input.error:focus,
.form-select.error:focus {
    border-color: #f44336;
    box-shadow: 0 0 0 3px rgba(244, 67, 54, 0.1);
}

/* Password Input Wrapper */
.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-wrapper .form-input {
    padding-right: 50px;
}

.toggle-password {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f0a500;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.toggle-password:hover {
    opacity: 1;
}

.toggle-password .material-icons {
    font-size: 20px;
}

/* Password Strength */
.password-strength {
    margin-top: 8px;
}

.strength-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 6px;
}

.strength-bar-fill {
    height: 100%;
    transition: all 0.3s ease;
    border-radius: 3px;
}

.strength-bar-fill.strength-weak {
    background: linear-gradient(90deg, #f44336, #e91e63);
}

.strength-bar-fill.strength-medium {
    background: linear-gradient(90deg, #ff9800, #ffc107);
}

.strength-bar-fill.strength-strong {
    background: linear-gradient(90deg, #4caf50, #8bc34a);
}

.strength-text {
    font-size: 12px;
    font-weight: 600;
}

.strength-text.strength-weak {
    color: #f44336;
}

.strength-text.strength-medium {
    color: #ff9800;
}

.strength-text.strength-strong {
    color: #4caf50;
}

/* Field Error */
.field-error {
    color: #f44336;
    font-size: 13px;
    min-height: 18px;
    display: block;
}

/* Loading Text */
.loading-text {
    color: #f0a500;
    font-size: 13px;
    font-style: italic;
    display: flex;
    align-items: center;
    gap: 5px;
}

.loading-text .material-icons {
    font-size: 16px;
}

/* Submit Button (matching main site's golden button) */
.submit-btn {
    width: 100%;
    padding: 16px 24px;
    font-size: 18px;
    font-weight: 700;
    color: #111;
    background: linear-gradient(45deg, #FFD700, #FFA500);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
    animation: glow 8.5s infinite;
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
    }
    50% {
        box-shadow: 0 4px 25px rgba(255, 215, 0, 0.6),
                    0 0 40px rgba(255, 215, 0, 0.3);
    }
}

.submit-btn:hover:not(:disabled) {
    transform: scale(1.05);
    box-shadow: 0 6px 25px rgba(255, 215, 0, 0.5),
                0 0 40px rgba(255, 215, 0, 0.4);
}

.submit-btn:active:not(:disabled) {
    transform: scale(0.98);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Button Loader */
.btn-loader .material-icons {
    font-size: 24px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.spin {
    animation: spin 1s linear infinite;
}

/* Form Footer */
.form-footer {
    margin-top: 24px;
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 215, 0, 0.1);
}

.form-footer p {
    font-size: 14px;
    color: #ccc;
}

.login-link-text {
    color: #FFD700;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.login-link-text:hover {
    color: #FFA500;
    text-decoration: underline;
}

/* Footer */
.footer {
    background: #111;
    padding: 30px 20px;
    border-top: 1px solid rgba(255, 215, 0, 0.1);
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-logo img {
    height: 60px;
    margin-bottom: 20px;
    opacity: 0.8;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.social-links a {
    color: #fff;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #f0a500;
}

.footer-links {
    margin-bottom: 15px;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #f0a500;
}

.copyright {
    color: #888;
    font-size: 14px;
}

/* Select Dropdown */
.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f0a500' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
    padding-right: 45px;
    cursor: pointer;
}

.form-select option {
    background: #1a1a1a;
    color: #fff;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .nav-menu {
        gap: 1.5rem;
    }

    .nav-menu a {
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background: #111;
        width: 100%;
        text-align: center;
        transition: left 0.3s ease;
        padding: 20px 0;
        border-top: 1px solid rgba(255, 215, 0, 0.2);
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .registration-card {
        padding: 40px 30px;
    }

    .registration-title {
        font-size: 28px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .form-input,
    .form-select {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

@media (max-width: 480px) {
    .registration-card {
        padding: 30px 20px;
    }

    .registration-title {
        font-size: 24px;
    }

    .form-logo img {
        height: 60px;
    }

    .submit-btn {
        font-size: 16px;
        padding: 14px 20px;
    }
}

/* Focus Visible for Accessibility */
.form-input:focus-visible,
.form-select:focus-visible,
.submit-btn:focus-visible,
.toggle-password:focus-visible,
.login-link-text:focus-visible {
    outline: 2px solid #FFD700;
    outline-offset: 2px;
}

/* Disabled State */
.form-input:disabled,
.form-select:disabled {
    background: rgba(0, 0, 0, 0.2);
    cursor: not-allowed;
    opacity: 0.5;
}
