/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    background-color: #1a1a1a;
    background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)), url('/site/images/rh1920x1200.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    color: #e0e0e0;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.container {
    display: flex;
    max-width: 1200px;
    width: 90%;
    max-height: 90vh;
    min-height: 600px;
    background-color: #2a2a2a;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

/* Left Panel Styles */
.left-panel {
    background-color: white;
    flex: 1;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    padding: 0px;
    display: flex;
    flex-direction: column;
    position: relative;
    align-items: center;
    justify-content: space-between;
}

.logo-container {
    margin-bottom: 10px;
}

.logo {
    max-width: 300px;
}

.game-description {

    text-align: center;
}

.game-description h2, h3 {
    font-family: 'MedievalSharp', cursive;
    color: #c62828;
    margin-bottom: 10px;
    font-size: 24px;
}

.game-description p {
    font-size: 14px;
    line-height: 1.5;
}

/* Right Panel Styles */
.right-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px;
    overflow: hidden;
}

.form-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px 0;
}

.form-container h2 {
    font-family: 'MedievalSharp', cursive;
    color: #c62828;
    margin-bottom: 30px;
    text-align: center;
    font-size: 28px;
}

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

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

#signupForm {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-icon i {
    position: absolute;
    left: 15px;
    color: #777;
}

.input-with-icon input {
    width: 100%;
    padding: 12px 120px 12px 40px;
    border: 2px solid #444;
    border-radius: 5px;
    background-color: #333;
    color: #e0e0e0;
    font-size: 14px;
    transition: all 0.3s;
}

.input-with-icon input:focus {
    border-color: #c62828;
    outline: none;
    box-shadow: 0 0 5px rgba(198, 40, 40, 0.5);
}

.error-message {
    color: #ff5252;
    font-size: 12px;
    margin-top: 5px;
    height: 16px;
}

.form-wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
}

.form-header {
    flex-shrink: 0;
    padding: 10px 0;
}

.form-scrollable {
    flex: 1;
    overflow-y: auto;
    padding: 10px 0;
}

.form-content {
    flex: 1;
    overflow-y: auto;
    padding: 10px 0;
    margin-bottom: 10px;
}

/* Better scrollbar styling */
.form-content::-webkit-scrollbar {
    width: 6px;
}

.form-content::-webkit-scrollbar-track {
    background: #333;
}

.form-content::-webkit-scrollbar-thumb {
    background: #c62828;
    border-radius: 3px;
}

/* Form Footer - Always Visible */
.form-footer {
    flex-shrink: 0;
    padding: 4px 0;
    margin-top: auto;
    border-top: 1px solid #444;
    background-color: #2a2a2a;
    position: sticky;
    bottom: 0;
}

.submit-btn {
    width: 100%;
    padding: 12px;
    background-color: #c62828;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-btn:hover {
    background-color: #b71c1c;
}

.login-link, 
.reset-link, 
.register-link {
    text-align: center;
    font-size: 14px;
}

.login-link a {
    color: #c62828;
    text-decoration: none;
    font-weight: 600;
}

.login-link a:hover {
    text-decoration: underline;
}

.response-message {
    margin-top: 20px;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    display: none;
}

.response-message.success {
    background-color: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
    display: block;
}

.response-message.error {
    background-color: rgba(244, 67, 54, 0.2);
    color: #f44336;
    display: block;
}

.legal-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    font-size: 12px;
}

.legal-links a {
    color: #777;
    text-decoration: none;
}

.legal-links a:hover {
    color: #c62828;
}

/* Footer Styles */
.footer-content {
    display: none;
    width: 100%;
}

.footer-content.active {
    display: block;
}

.footer-links {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.switch-tab {
    color: #c62828;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
}

.switch-tab:hover {
    text-decoration: underline;
}

/* Responsive Styles */
@media (max-width: 480px) {
    .footer-links {
        flex-direction: column;
    }
}

@media (max-height: 700px) {
    .container {
        max-height: 95vh;
        min-height: 400px;
    }
    
    .form-group {
        margin-bottom: 12px;
    }
    
    .input-with-icon input {
        padding: 10px 100px 10px 35px;
        font-size: 13px;
    }
    
    .form-group label {
        font-size: 14px;
    }
    
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
        max-height: none;
        height: auto;
    }
    
    .left-panel {
        padding: 20px;
    }
    
    .game-screenshot {
        display: none;
    }
}

/* Verification Button Styles */
.verification-btn {
    position: absolute;
    right: 10px;
    background-color: #333;
    color: #c62828;
    border: 1px solid #c62828;
    border-radius: 3px;
    padding: 5px 10px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s;
}

.verification-btn:hover {
    background-color: #c62828;
    color: white;
}

.verification-btn:disabled {
    background-color: #333;
    color: #777;
    border-color: #444;
    cursor: not-allowed;
}

/* Tab Styles */
.form-tabs {
    display: flex;
    border-bottom: 1px solid #444;
    margin-bottom: 20px;
}

.tab-button {
    flex: 1;
    padding: 12px 0;
    background: none;
    border: none;
    color: #777;
    font-family: 'MedievalSharp', cursive;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.tab-button.active {
    color: #c62828;
}

.tab-button.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #c62828;
}

/* Form Content */
.form-content {
    display: none;
    flex: 1;
    overflow-y: auto;
    padding: 10px 0;
    margin-bottom: 10px;
}

.form-content.active {
    display: block;
}

/* Submit Buttons */
#resetSubmit {
    display: none;
}

/* Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.form-content.active {
    animation: fadeIn 0.3s ease-out;
}


.password-match {
    border-color: #4CAF50 !important;
    box-shadow: 0 0 5px rgba(76, 175, 80, 0.5) !important;
}

.password-mismatch {
    border-color: #f44336 !important;
    box-shadow: 0 0 5px rgba(244, 67, 54, 0.5) !important;
}