/* RF Philippines - Exact Match Design */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Orbitron:wght@400;600;700;800&display=swap');

:root {
    --primary-color: #ff4444;
    --primary-hover: #e63939;
    --secondary-color: #333333;
    --accent-color: #ffd700;
    --text-dark: #333333;
    --text-light: #666666;
    --text-muted: #999999;
    --bg-white: #ffffff;
    --bg-light: #f8f9fa;
    --bg-gray: #e8e8e8;
    --border-color: #e0e0e0;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #17a2b8;
    --form-bg: #1a1a1a;
    --form-border: #333333;
}

/* Global Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-gray);
}

.main-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header Styles */
.top-header {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    padding: 12px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}


.logo-section {
    display: flex;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.logo-link:hover {
    transform: scale(1.05);
    text-decoration: none;
}

.logo-image {
    height: 70px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    transition: all 0.3s ease;
}

.logo-image:hover {
    transform: rotate(5deg) scale(1.1);
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-btn {
    padding: 8px 20px;
    border: 1px solid transparent;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.btn-login {
    background: var(--secondary-color);
    color: var(--bg-white);
    border-color: var(--secondary-color);
}

.btn-login:hover {
    background: #555555;
    border-color: #555555;
    color: var(--bg-white);
    text-decoration: none;
}

.btn-signup {
    background: var(--primary-color);
    color: var(--bg-white);
    border-color: var(--primary-color);
}

.btn-signup:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
    color: var(--bg-white);
    text-decoration: none;
}

.cash-coin {
    background: linear-gradient(45deg, var(--accent-color), #ffed4e);
    color: var(--text-dark);
    padding: 6px 16px;
    border-radius: 15px;
    font-weight: 700;
    font-size: 11px;
    display: flex;
    align-items: center;
    gap: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.social-icons {
    display: flex;
    gap: 8px;
}

.social-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-white);
    text-decoration: none;
    font-size: 14px;
    transition: transform 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-2px);
    text-decoration: none;
    color: var(--bg-white);
}

.facebook { background: #3b5998; }
.twitter { background: #1da1f2; }
.youtube { background: #ff0000; }

/* Content Area */
.content-area {
    flex: 1;
    display: flex;
    background: var(--bg-gray);
    padding: 60px 40px;
    gap: 150px; /* Increased from 60px to create more space */
    justify-content: center;
    align-items: flex-start;
    min-height: calc(100vh - 200px);
}

/* Left Panel - Perfect desktop layout */
.left-panel {
    flex: 0 0 auto;
    width: 520px; /* Increased from 500px */
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Changed from center to flex-start */
    padding-top: 40px;
    padding-left: 20px; /* Add left padding to move content left */
}

.left-content {
    text-align: left; /* Changed from center to left */
    width: 100%;
    margin-left: -30px; /* Move content 30px to the left */
}


/* SIGN UP title - bigger and bolder */
.sign-up-title {
    font-family: 'Orbitron', monospace;
    font-size: 56px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 20px;
    letter-spacing: 4px;
    text-transform: uppercase;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

/* Welcome subtitle */
.welcome-subtitle {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 40px;
    font-weight: 400;
    letter-spacing: 0.5px;
}

/* Already account section */
.already-account {
    margin-bottom: 20px;
}

.already-account p {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 15px;
    font-weight: 400;
}

.login-here-btn {
    background: var(--primary-color);
    color: var(--bg-white);
    padding: 14px 40px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 68, 68, 0.3);
}

.login-here-btn:hover {
    background: var(--primary-hover);
    color: var(--bg-white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 68, 68, 0.4);
    text-decoration: none;
}

/* Character section - Updated with SIGN UP style text and race colors */
.character-section {
    margin-top: 60px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Race Selection Header - Same style as SIGN UP */
.race-selection-header {
    text-align: center;
    margin-bottom: 30px;
}


.race-tagline {
    font-family: 'Orbitron', monospace;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);

    background-clip: text;
}

.character-image {
    width: 100%;
    max-width: 450px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 20px;
    position: relative;
}

/* Character containers with background images */
.character-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Race Names Above Characters - Updated Colors */
.race-name {
    font-family: 'Orbitron', monospace;
    font-size: 18px; /* Increased size */
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 3px; /* Increased spacing */
    margin-bottom: 15px;
    padding: 12px 20px; /* Increased padding */
    border-radius: 8px; /* More rectangular like buttons */
    color: var(--bg-white);
    text-align: center;
    min-width: 120px; /* Wider */
    transition: all 0.3s ease;
    z-index: 3;
    position: relative;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    border: 2px solid transparent;
}

/* CORA - Violet/Purple */
.character-container:nth-child(1) .race-name {
    background: linear-gradient(45deg, #8A2BE2, #9370DB);
    border: 2px solid #9932CC;
    box-shadow: 0 4px 15px rgba(138, 43, 226, 0.4);
}

.character-container:nth-child(1):hover .race-name {
    background: linear-gradient(45deg, #9932CC, #BA55D3);
    box-shadow: 0 6px 20px rgba(138, 43, 226, 0.6), 0 0 20px rgba(153, 50, 204, 0.4);
    transform: translateY(-5px) scale(1.05);
}

/* ACCRETIA - Gray/Silver */
.character-container:nth-child(2) .race-name {
    background: linear-gradient(45deg, #696969, #A9A9A9);
    border: 2px solid #808080;
    box-shadow: 0 4px 15px rgba(105, 105, 105, 0.4);
}

.character-container:nth-child(2):hover .race-name {
    background: linear-gradient(45deg, #808080, #C0C0C0);
    box-shadow: 0 6px 20px rgba(105, 105, 105, 0.6), 0 0 20px rgba(128, 128, 128, 0.4);
    transform: translateY(-5px) scale(1.05);
}

/* BELLATO - Pink */
.character-container:nth-child(3) .race-name {
    background: linear-gradient(45deg, #FF1493, #FF69B4);
    border: 2px solid #FF20B2;
    box-shadow: 0 4px 15px rgba(255, 20, 147, 0.4);
}

.character-container:nth-child(3):hover .race-name {
    background: linear-gradient(45deg, #FF20B2, #FFB6C1);
    box-shadow: 0 6px 20px rgba(255, 20, 147, 0.6), 0 0 20px rgba(255, 32, 178, 0.4);
    transform: translateY(-5px) scale(1.05);
}

/* Background emblems/symbols behind each character */
.character-container::before {
    content: '';
    position: absolute;
    width: 500px;  /* Container size */
    height: 280px; /* Container size */
    background-repeat: no-repeat;
    background-position: center;
    z-index: 1;
    opacity: 0.3;
    transition: all 0.3s ease;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-size: contain;

}

/* Background image paths */
.character-container:nth-child(1)::before {
    background-image: url('../images/Cora.png');
}

.character-container:nth-child(2)::before {
    background-image: url('../images/Accretia.png');
}

.character-container:nth-child(3)::before {
    background-image: url('../images/Bellato.png');
}

/* Character images with z-index to appear above background */
.character-container img {
    position: relative;
    z-index: 2;
    border-radius: 8px;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.2));
    transition: all 0.3s ease;
}

/* Left character - female warrior */
.character-container:nth-child(1) img {
    height: 340px;
    width: auto;
    transform: translateY(20px);
}

/* Center character - main knight (tallest) */
.character-container:nth-child(2) img {
    height: 340px;
    width: auto;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.25));
    transform: translateY(0px);
}

/* Right character - smaller character */
.character-container:nth-child(3) img {
    height: 320px;
    width: auto;
    transform: translateY(30px);
}

/* Enhanced hover effects with background interaction */
.character-container:hover::before {
    opacity: 0.6;
    transform: translate(-50%, -50%) scale(1.1) rotate(5deg);
}

.character-container:hover img {
    transform: translateY(-10px) scale(1.05);
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.3));
    z-index: 10;
}

.character-container:nth-child(1):hover img {
    transform: translateY(10px) scale(1.05);
}

.character-container:nth-child(3):hover img {
    transform: translateY(20px) scale(1.05);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .race-tagline {
        font-size: 36px; /* Scaled down for mobile */
        letter-spacing: 2px;
    }
    
    .race-name {
        font-size: 14px;
        padding: 8px 16px;
        margin-bottom: 10px;
        letter-spacing: 2px;
    }
    
    .character-container img {
        height: 250px;
    }
    
    .character-container:nth-child(2) img {
        height: 250px;
    }
    
    .character-container:nth-child(3) img {
        height: 230px;
    }
}

@media (max-width: 480px) {
    .race-tagline {
        font-size: 28px;
        letter-spacing: 1px;
    }
    
    .character-image {
        flex-direction: column;
        gap: 30px;
    }
    
    .race-name {
        font-size: 12px;
        padding: 6px 12px;
        letter-spacing: 1px;
    }
    
    .character-container img {
        height: 200px;
    }
    
    .character-container:nth-child(2) img,
    .character-container:nth-child(3) img {
        height: 200px;
    }
}

/* Right Panel - Dark Form */
.right-panel {
    flex: 0 0 auto;
    width: 400px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.form-container {
    background: var(--form-bg);
    border: 1px solid var(--form-border);
    border-radius: 12px;
    padding: 30px;
    width: 100%;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    color: var(--bg-white);
}

.form-title {
    color: #4a9eff;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid var(--form-border);
    padding-bottom: 10px;
}

/* Form Elements */
.form-group {
    margin-bottom: 18px;
    position: relative;
}

.form-label {
    display: block;
    font-weight: 500;
    color: var(--bg-white);
    margin-bottom: 5px;
    font-size: 13px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid #444444;
    border-radius: 6px;
    color: var(--bg-white) !important; /* Force white text color */
    font-size: 14px;
    font-weight: 400;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-control:focus {
    outline: none;
    border-color: #4a9eff;
    background: rgba(74, 158, 255, 0.1);
    box-shadow: 0 0 0 2px rgba(74, 158, 255, 0.2);
    color: var(--bg-white) !important; /* Ensure white text on focus */
}

.form-control::placeholder {
    color: #888888 !important; /* Ensure placeholder text is visible */
}

.form-control.is-valid {
    border-color: var(--success-color);
    background: rgba(40, 167, 69, 0.1);
    color: var(--bg-white) !important; /* Keep white text when valid */
}

.form-control.is-invalid {
    border-color: var(--danger-color);
    background: rgba(220, 53, 69, 0.1);
    color: var(--bg-white) !important; /* Keep white text when invalid */
}

/* Additional fix for autofill styles */
.form-control:-webkit-autofill,
.form-control:-webkit-autofill:hover,
.form-control:-webkit-autofill:focus,
.form-control:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px rgba(255, 255, 255, 0.1) inset !important;
    -webkit-text-fill-color: var(--bg-white) !important;
    color: var(--bg-white) !important;
}

/* Specific fix for CAPTCHA input */
.captcha-input {
    text-transform: uppercase;
    letter-spacing: 3px;
    font-family: 'Courier New', monospace;
    font-weight: 600;
    text-align: center;
    font-size: 18px;
    padding: 16px 20px;
    color: var(--bg-white) !important; /* Force white text */
    background: rgba(255, 255, 255, 0.1) !important;
}

.captcha-input:focus {
    color: var(--bg-white) !important;
    background: rgba(74, 158, 255, 0.1) !important;
}

.captcha-input::placeholder {
    color: #888888 !important;
}

/* Fix for any input field in the dark form */
.form-container input[type="text"],
.form-container input[type="email"],
.form-container input[type="password"] {
    color: var(--bg-white) !important;
    background: rgba(255, 255, 255, 0.1) !important;
}

.form-container input[type="text"]:focus,
.form-container input[type="email"]:focus,
.form-container input[type="password"]:focus {
    color: var(--bg-white) !important;
    background: rgba(74, 158, 255, 0.1) !important;
}

/* Password Toggle */
.password-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #888888;
    cursor: pointer;
    font-size: 16px;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: #4a9eff;
}

/* Status Indicators */
.status-indicator {
    font-size: 12px;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 400;
}

.status-indicator i {
    font-size: 12px;
}

.status-indicator.available { 
    color: var(--success-color); 
}

.status-indicator.unavailable { 
    color: var(--danger-color); 
}

.status-indicator.checking { 
    color: var(--warning-color); 
}

.help-text {
    font-size: 11px;
    color: #888888;
    margin-top: 4px;
    line-height: 1.3;
}

/* CAPTCHA Styles - Updated for larger size */
.captcha-container {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    padding: 20px;
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    border-radius: 8px;
}

.captcha-image {
    width: 300px;  /* Increased from 200px */
    height: 100px; /* Increased from 60px */
    border: 2px solid var(--border-color);
    border-radius: 8px;
    object-fit: contain;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.captcha-controls {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.captcha-btn {
    width: 50px;  /* Increased from 40px */
    height: 50px; /* Increased from 40px */
    border: 2px solid var(--border-color);
    background: var(--bg-white);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-light);
    font-size: 20px; /* Increased from 16px */
}

.captcha-btn:hover {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: var(--bg-white);
    transform: scale(1.05);
}

.captcha-input {
    text-transform: uppercase;
    letter-spacing: 3px;
    font-family: 'Courier New', monospace;
    font-weight: 600;
    text-align: center;
    font-size: 18px;
    padding: 16px 20px; /* Increased padding */
    color: var(--bg-white) !important; /* Force white text */
}

/* Responsive adjustments for CAPTCHA */
@media (max-width: 768px) {
    .captcha-container {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .captcha-image {
        width: 280px;
        height: 90px;
    }
    
    .captcha-controls {
        flex-direction: row;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .captcha-image {
        width: 250px;
        height: 80px;
    }
    
    .captcha-btn {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
}

/* Checkbox Styles */
.checkbox-container {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #444444;
    border-radius: 6px;
}

.form-check-input {
    margin-top: 3px;
    width: 16px;
    height: 16px;
    accent-color: var(--primary-color);
    flex-shrink: 0;
}

.checkbox-label {
    color: var(--bg-white);
    font-size: 13px;
    line-height: 1.4;
    font-weight: 400;
}

.checkbox-label a {
    color: #4a9eff;
    text-decoration: none;
    font-weight: 500;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

/* Submit Button */
.submit-btn {
    width: 100%;
    background: var(--primary-color);
    color: var(--bg-white);
    padding: 12px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

.submit-btn:disabled {
    background: #666666;
    cursor: not-allowed;
    transform: none;
}

/* Password Strength Indicator */
.password-strength {
    margin-top: 6px;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
}

.strength-weak {
    background: rgba(220, 53, 69, 0.2);
    color: var(--danger-color);
    border: 1px solid rgba(220, 53, 69, 0.3);
}

.strength-medium {
    background: rgba(255, 193, 7, 0.2);
    color: var(--warning-color);
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.strength-strong {
    background: rgba(40, 167, 69, 0.2);
    color: var(--success-color);
    border: 1px solid rgba(40, 167, 69, 0.3);
}

/* Verification Link */
.verification-link {
    text-align: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #444444;
}

.verification-link p {
    color: #888888;
    font-size: 12px;
    margin-bottom: 0;
}

.verification-link a {
    color: #4a9eff;
    text-decoration: none;
    font-weight: 500;
}

.verification-link a:hover {
    text-decoration: underline;
}

/* Footer Styles */
.bottom-footer {
    background: var(--secondary-color);
    color: var(--bg-white);
    padding: 15px 0;
    border-top: 1px solid #444444;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}

.footer-logo {
    width: 100px;
    height: 80px;
    border-radius: 10px;
    object-fit: contain;
    transition: all 0.3s ease;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.footer-title {
    font-family: 'Orbitron', monospace;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.footer-right .server-time {
    text-align: right;
}

.time-label {
    font-size: 10px;
    color: #cccccc;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 3px;
}

.time-display {
    font-size: 14px;
    font-weight: 500;
}

.time-number {
    font-family: 'Orbitron', monospace;
    font-size: 18px;
    font-weight: 700;
    margin-left: 6px;
    color: var(--accent-color);
}

/* Loading States */
.form-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.form-loading::after {
    content: "Processing...";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 26, 26, 0.9);
    border-radius: 12px;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #4a9eff;
    font-size: 14px;
}