/* Register Page Specific CSS for RP Game */

/* Base Styles */
:root {
    --primary-color: #8b0000;
    --primary-dark: #5d0000;
    --primary-light: #c10000;
    --accent-color: #ffd700;
    --accent-dark: #d4af37;
    --text-light: #ffffff;
    --text-dark: #333333;
    --bg-dark: #1a1a1a;
    --bg-darker: #0a0a0a;
    --bg-light: #1e1e1e;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --border-radius: 8px;
    --box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    --transition: all 0.3s ease;
}

body {
    background: linear-gradient(135deg, #8b0000 0%, #5d0000 100%);
    min-height: 100vh;
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    color: var(--text-light);
}

/* Header Styles */
.header {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background-color: rgba(0, 0, 0, 0.2);
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    width: 50px;
    height: 50px;
    margin-right: 0.5rem;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-light);
    margin: 0;
}

/* Register Container Styles */
.auth-container {
    background: #1a1a1a;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    margin: 2rem auto;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 215, 0, 0.1);
}

.auth-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent-color);
}

/* Auth Title Styles */
.auth-title {
    color: var(--text-light);
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-align: center;
}

.auth-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    text-align: center;
    margin-bottom: 2rem;
}

/* Form Styles */
.auth-form {
    margin-top: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-group label {
    display: block;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    color: var(--text-light);
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(255, 215, 0, 0.2);
    background-color: rgba(255, 255, 255, 0.12);
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* Form Text Helper */
.form-text {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 0.5rem;
}

/* Password Input Styles */
.password-input {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
}

.toggle-password:hover {
    color: var(--accent-color);
}

/* Checkbox Styles */
.checkbox {
    display: flex;
    align-items: center;
    margin-top: 0.5rem;
}

.checkbox input[type="checkbox"] {
    margin-right: 0.5rem;
    accent-color: var(--accent-color);
    width: 18px;
    height: 18px;
}

.checkbox label {
    margin-bottom: 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.checkbox a {
    color: var(--accent-color);
    text-decoration: none;
    transition: var(--transition);
}

.checkbox a:hover {
    text-decoration: underline;
    color: var(--accent-dark);
}

/* Button Styles */
.btn {
    display: inline-block;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    user-select: none;
    border: 1px solid transparent;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 50px;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--text-light);
    border: none;
    box-shadow: 0 4px 10px rgba(139, 0, 0, 0.3);
}

.btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(139, 0, 0, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(139, 0, 0, 0.3);
}

.btn-block {
    display: block;
    width: 100%;
}

/* Auth Footer Styles */
.auth-footer {
    margin-top: 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
}

.auth-footer a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.auth-footer a:hover {
    text-decoration: underline;
    color: var(--accent-dark);
}

/* Loader styles */
#loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loader {
    text-align: center;
}

.spinner {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
}

.coin {
    position: absolute;
    width: 50px;
    height: 50px;
    transform-style: preserve-3d;
    animation: spin 2s infinite linear;
}

.coin1 {
    top: 0;
    left: 25px;
    animation-delay: 0s;
}

.coin2 {
    top: 25px;
    left: 0;
    animation-delay: 0.2s;
}

.coin3 {
    top: 25px;
    left: 50px;
    animation-delay: 0.4s;
}

.face {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    backface-visibility: hidden;
}

.front {
    background: var(--accent-color);
    transform: rotateY(0deg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--primary-dark);
    font-size: 20px;
}

.front::after {
    content: "₹";
}

.back {
    background: var(--accent-dark);
    transform: rotateY(180deg);
}

@keyframes spin {
    0% { transform: rotateY(0); }
    100% { transform: rotateY(360deg); }
}

.loading-text {
    color: var(--text-light);
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 2px;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 0.5; }
    50% { opacity: 1; }
    100% { opacity: 0.5; }
}

/* OTP Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: #1a1a1a;
    margin: 10% auto;
    padding: 2rem;
    border-radius: var(--border-radius);
    max-width: 450px;
    width: 90%;
    box-shadow: var(--box-shadow);
    position: relative;
    border: 1px solid rgba(255, 215, 0, 0.1);
}

.close-modal {
    position: absolute;
    right: 1.5rem;
    top: 1rem;
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
}

.close-modal:hover {
    color: var(--accent-color);
}

.modal-content h2 {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 1.8rem;
    text-align: center;
}

.modal-content p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
    text-align: center;
}

/* OTP Input Styles */
.otp-container {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 2rem 0;
}

.otp-input {
    width: 45px;
    height: 50px;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 600;
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    color: var(--text-light);
    transition: var(--transition);
}

.otp-input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(255, 215, 0, 0.2);
    background-color: rgba(255, 255, 255, 0.12);
}

/* Resend OTP Styles */
.resend-otp {
    text-align: center;
    margin-bottom: 1.5rem;
}

.resend-otp p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.resend-otp a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.resend-otp a:hover {
    text-decoration: underline;
    color: var(--accent-dark);
}

#otp-timer {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Error Message Styles */
.error-message {
    background-color: rgba(220, 53, 69, 0.1);
    border-left: 4px solid var(--danger-color);
    color: #ff6b6b;
    padding: 0.75rem 1rem;
    margin-bottom: 1.5rem;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    font-size: 0.9rem;
    display: none;
}

.error-message.show {
    display: block;
    animation: shake 0.5s ease-in-out;
}

/* Success Message Styles */
.success-message {
    background-color: rgba(40, 167, 69, 0.1);
    border-left: 4px solid var(--success-color);
    color: #5cdb95;
    padding: 0.75rem 1rem;
    margin-bottom: 1.5rem;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    font-size: 0.9rem;
    display: none;
}

.success-message.show {
    display: block;
    animation: fadeIn 0.5s ease-in-out;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-5px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(5px);
    }
}

/* Responsive Styles */
@media (max-width: 768px) {
    .auth-container {
        padding: 2rem;
        margin: 1.5rem auto;
    }
    
    .auth-title {
        font-size: 1.8rem;
    }
    
    .otp-container {
        gap: 0.3rem;
    }
    
    .otp-input {
        width: 40px;
        height: 45px;
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .auth-container {
        padding: 1.5rem;
        margin: 1rem auto;
    }
    
    .auth-title {
        font-size: 1.6rem;
    }
    
    .btn {
        padding: 0.7rem 1.2rem;
    }
    
    .otp-container {
        gap: 0.25rem;
    }
    
    .otp-input {
        width: 35px;
        height: 40px;
        font-size: 1rem;
    }
}

/* Hide app container until loaded */
#app.hidden {
    display: none;
}

/* Page Transition */
.page-transition {
    animation: fadeIn 0.5s ease-out;
}