/* FirePanda Authentication Styles */
:root {
    --primary-color: #F89423; /* FirePanda Orange */
    --secondary-color: #3D4C79; /* FirePanda Blue */
    --accent-light: #FFB964; /* Lighter Orange */
    --background-light: #F8F9FA;
    --error-color: #dc3545;
    --success-color: #28a745;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    line-height: 1.6;
    background-color: #f5f7fa;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.auth-container {
    width: 100%;
    max-width: 400px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
}

.auth-header {
    background-color: var(--secondary-color);
    padding: 30px;
    text-align: center;
    color: white;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
}

.logo-icon img {
    width: 120px;
    height: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.auth-header h1 {
    font-size: 1.8em;
    margin-bottom: 10px;
}

.auth-header p {
    opacity: 0.9;
    font-size: 0.9em;
}

.auth-tabs {
    display: flex;
    border-bottom: 1px solid #eee;
}

.auth-tab {
    flex: 1;
    padding: 15px;
    text-align: center;
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.auth-tab.active {
    color: var(--primary-color);
}

.auth-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-color);
}

.auth-form {
    padding: 30px;
}

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

.form-label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #eee;
    border-radius: 8px;
    font-size: 1em;
    transition: all 0.3s ease;
    background: var(--background-light);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 3px rgba(248, 148, 35, 0.1);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-input.error {
    border-color: var(--error-color);
}

.error-message {
    color: var(--error-color);
    font-size: 0.85em;
    margin-top: 5px;
    display: none;
}

.error-message.visible {
    display: block;
}

.form-checkbox {
    margin-right: 8px;
    vertical-align: middle;
}

.form-submit {
    width: 100%;
    padding: 12px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
}

.form-submit:hover {
    background-color: #e08116;
}

.form-submit:active {
    transform: translateY(0);
}

.form-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9em;
    color: #666;
}

.form-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.form-footer a:hover {
    text-decoration: underline;
}

.register-form, .password-form {
    display: none;
}

.loading-spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 5px;
}

.password-requirements {
    font-size: 0.85em;
    color: #666;
    margin-top: 8px;
}

.password-requirement {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 3px;
}

.requirement-icon {
    color: #ccc;
}

.requirement-icon.valid {
    color: var(--success-color);
}

.message-container {
    padding: 10px;
    margin-bottom: 20px;
    border-radius: 8px;
    display: none;
}

.success-message {
    background-color: rgba(40, 167, 69, 0.1);
    color: var(--success-color);
    border: 1px solid var(--success-color);
}

.error-message-container {
    background-color: rgba(220, 53, 69, 0.1);
    color: var(--error-color);
    border: 1px solid var(--error-color);
}

.message-container.visible {
    display: block;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 16px;
    max-width: 800px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    position: relative;
}

.modal-header {
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.modal-title {
    color: var(--secondary-color);
    font-size: 1.5em;
    margin: 0;
}

.back-button {
    margin-top: 15px;
    display: inline-block;
    color: var(--primary-color);
    cursor: pointer;
}

.back-button:hover {
    text-decoration: underline;
}

/* Loading indicator for modal content */
.modal-loading {
    padding: 40px;
    text-align: center;
}

.modal-loading-spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top: 4px solid var(--primary-color);
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px auto;
}

/* Styles for terms and privacy content */
.container h1 {
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.container h2 {
    color: var(--secondary-color);
    margin: 25px 0 15px;
}

.container p {
    margin-bottom: 15px;
}

.container ul {
    margin-bottom: 15px;
    padding-left: 20px;
}

.container li {
    margin-bottom: 8px;
}