/* ===================================
   PROFESSIONAL MARTIAL ARTS THEME
   Split-Screen Design with Animations
   =================================== */

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    background: linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%);
    color: #e8f4f8;
}

/* Animated Background Layers */
.bg-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.bg-layer {
    position: absolute;
    width: 100%;
    height: 100%;
}

.layer-1 {
    background: linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%);
}

.layer-2 {
    background: radial-gradient(circle at 20% 50%, rgba(44, 83, 100, 0.3) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(78, 205, 196, 0.2) 0%, transparent 50%);
    animation: pulse 8s ease-in-out infinite;
}

.layer-3 {
    background-image: 
        linear-gradient(90deg, rgba(232, 244, 248, 0.03) 1px, transparent 1px),
        linear-gradient(rgba(232, 244, 248, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.5;
}

@keyframes pulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

/* Top Navigation */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(15, 32, 39, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(232, 244, 248, 0.1);
    z-index: 1000;
    padding: 15px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.nav-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.brand:hover {
    transform: translateX(5px);
}

.brand-logo {
    height: 45px;
    width: auto;
    filter: drop-shadow(0 0 10px rgba(78, 205, 196, 0.5));
}

.brand-text {
    font-size: 20px;
    font-weight: 700;
    color: #e8f4f8;
    letter-spacing: 1px;
}

.nav-actions {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-btn {
    color: rgba(232, 244, 248, 0.8);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 20px;
    border: 1px solid rgba(232, 244, 248, 0.2);
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(78, 205, 196, 0.3), transparent);
    transition: left 0.5s ease;
}

.nav-btn:hover::before {
    left: 100%;
}

.nav-btn:hover {
    color: #e8f4f8;
    border-color: rgba(78, 205, 196, 0.5);
    transform: translateY(-2px);
}

.nav-btn-img {
    display: block;
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

.nav-btn-img img {
    height: 45px;
    width: auto;
    display: block;
}

.nav-btn-img:hover {
    transform: translateY(-3px);
    filter: drop-shadow(0 4px 12px rgba(78, 205, 196, 0.5));
}

/* Main Page Wrapper */
.page-wrapper {
    min-height: 100vh;
    padding-top: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Content Grid - Split Screen */
.content-grid {
    width: 100%;
    max-width: 1400px;
    margin: 40px auto;
    display: grid;
    grid-template-columns: 45% 55%;
    min-height: 700px;
    background: rgba(26, 58, 82, 0.3);
    border: 1px solid rgba(232, 244, 248, 0.1);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* Left Panel - Decorative */
.left-panel {
    background: linear-gradient(135deg, rgba(26, 58, 82, 0.5) 0%, rgba(44, 83, 100, 0.5) 100%);
    border-right: 1px solid rgba(232, 244, 248, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.left-panel::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(78, 205, 196, 0.15) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

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

.panel-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 60px;
}

.panel-title {
    font-size: 56px;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #4ecdc4 0%, #2c5364 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(78, 205, 196, 0.3);
}

.panel-subtitle {
    font-size: 18px;
    color: rgba(232, 244, 248, 0.7);
    line-height: 1.6;
    margin-bottom: 40px;
    font-weight: 300;
}

.panel-image {
    margin: 30px 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.account-icon {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 200px;
    display: block;
    filter: drop-shadow(0 4px 15px rgba(78, 205, 196, 0.4));
    transition: all 0.3s ease;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.account-icon:hover {
    filter: drop-shadow(0 6px 20px rgba(78, 205, 196, 0.6));
    transform: scale(1.05);
}

.panel-decoration {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 40px;
}

.deco-line {
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(78, 205, 196, 0.8), transparent);
}

.deco-circle {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4ecdc4;
    box-shadow: 0 0 20px rgba(78, 205, 196, 0.8);
    animation: pulse-circle 2s ease-in-out infinite;
}

@keyframes pulse-circle {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.5; }
}

/* Right Panel - Forms */
.right-panel {
    background: rgba(15, 32, 39, 0.8);
    backdrop-filter: blur(20px);
    padding: 60px;
    display: flex;
    flex-direction: column;
}

/* Form Selector - Image Buttons in Left Panel */
.form-selector {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 50px;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.selector-btn {
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 280px;
}

.selector-btn .selector-img {
    width: 100%;
    height: auto;
    display: block;
    opacity: 0.6;
    transition: all 0.3s ease;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.3));
}

.selector-btn:hover .selector-img {
    opacity: 0.8;
    transform: translateY(-3px);
    filter: drop-shadow(0 6px 15px rgba(78, 205, 196, 0.4));
}

.selector-btn.active .selector-img {
    opacity: 1;
    filter: drop-shadow(0 6px 15px rgba(78, 205, 196, 0.6));
}

.btn-number,
.btn-label {
    display: none;
}

/* Forms Wrapper */
.forms-wrapper {
    flex: 1;
    position: relative;
}

.form-container {
    display: none;
    animation: fadeSlideIn 0.4s ease;
}

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

@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Form Header */
.form-header {
    margin-bottom: 35px;
}

.form-title {
    font-size: 28px;
    font-weight: 700;
    color: #e8f4f8;
    margin-bottom: 8px;
}

.form-desc {
    font-size: 14px;
    color: rgba(232, 244, 248, 0.6);
    font-weight: 300;
}

/* Messages */
.message {
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    border-left: 4px solid;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.success-msg {
    background: rgba(78, 205, 196, 0.15);
    border-color: #4ecdc4;
    color: #4ecdc4;
}

.error-msg {
    background: rgba(245, 87, 108, 0.15);
    border-color: #f5576c;
    color: #ff6b6b;
}

.msg-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.msg-item:last-child {
    margin-bottom: 0;
}

.msg-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.msg-text {
    font-size: 14px;
    line-height: 1.5;
}

/* Form */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.input-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.input-label {
    font-size: 13px;
    font-weight: 600;
    color: rgba(232, 244, 248, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.input-wrapper {
    position: relative;
}

.input-field {
    width: 100%;
    background: rgba(26, 58, 82, 0.3);
    border: 1px solid rgba(232, 244, 248, 0.2);
    color: #e8f4f8;
    padding: 14px 16px;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
    outline: none;
}

.input-field:focus {
    background: rgba(26, 58, 82, 0.5);
    border-color: #4ecdc4;
    box-shadow: 0 0 0 3px rgba(78, 205, 196, 0.1);
}

.input-field:focus + .input-line {
    width: 100%;
}

.input-field::placeholder {
    color: rgba(232, 244, 248, 0.3);
}

.input-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #4ecdc4, #2c5364);
    transition: width 0.3s ease;
}

.input-wrapper.focused .input-line {
    width: 100%;
}

/* Select Dropdown */
select.input-field {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23fff' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

select.input-field option {
    background: #1a3a52;
    color: #e8f4f8;
}

/* Captcha */
.captcha-wrapper {
    display: flex;
    gap: 15px;
    align-items: center;
}

.captcha-box {
    background: linear-gradient(135deg, #1a3a52 0%, #2c5364 100%);
    color: #e8f4f8;
    padding: 14px 24px;
    border-radius: 8px;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 4px;
    cursor: pointer;
    user-select: none;
    min-width: 120px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(26, 58, 82, 0.4);
    position: relative;
    overflow: hidden;
    font-family: 'Courier New', monospace;
    border: 1px solid rgba(232, 244, 248, 0.2);
}

.captcha-box::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(78, 205, 196, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
}

.captcha-box:hover::before {
    width: 200%;
    height: 200%;
}

.captcha-text {
    position: relative;
    z-index: 1;
}

.captcha-refresh {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    font-size: 16px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.captcha-box:hover .captcha-refresh {
    opacity: 1;
}

.captcha-input {
    flex: 1;
}

/* Submit Button */
.submit-btn {
    background: linear-gradient(135deg, #1a3a52 0%, #2c5364 100%);
    color: #e8f4f8;
    border: 1px solid rgba(232, 244, 248, 0.2);
    padding: 16px 30px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(26, 58, 82, 0.4);
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(78, 205, 196, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
}

.submit-btn:hover::before {
    width: 300%;
    height: 300%;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(26, 58, 82, 0.6);
    border-color: rgba(78, 205, 196, 0.5);
}

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

.btn-text,
.btn-arrow {
    position: relative;
    z-index: 1;
}

.btn-arrow {
    font-size: 20px;
    transition: transform 0.3s ease;
}

.submit-btn:hover .btn-arrow {
    transform: translateX(5px);
}

/* Form Note */
.form-note {
    margin-top: 15px;
    padding: 15px;
    background: rgba(78, 205, 196, 0.1);
    border-left: 3px solid #4ecdc4;
    border-radius: 6px;
    font-size: 13px;
    color: rgba(232, 244, 248, 0.7);
    line-height: 1.6;
}

.form-note strong {
    color: #4ecdc4;
    font-weight: 600;
}

/* Password Strength Indicator */
.password-strength {
    margin-top: 10px;
}

.strength-bar {
    width: 100%;
    height: 8px;
    background: rgba(26, 58, 82, 0.3);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 8px;
}

.strength-fill {
    height: 100%;
    width: 0%;
    transition: all 0.3s ease;
    border-radius: 10px;
}

.strength-fill.weak {
    width: 33%;
    background: linear-gradient(90deg, #f5576c, #ff6b6b);
}

.strength-fill.medium {
    width: 66%;
    background: linear-gradient(90deg, #f77f00, #fcbf49);
}

.strength-fill.strong {
    width: 100%;
    background: linear-gradient(90deg, #4ecdc4, #44a08d);
}

.strength-text {
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    padding: 6px 12px;
    border-radius: 6px;
    background: rgba(26, 58, 82, 0.3);
    color: rgba(232, 244, 248, 0.5);
}

.strength-text.weak {
    background: rgba(245, 87, 108, 0.15);
    color: #ff6b6b;
}

.strength-text.medium {
    background: rgba(247, 127, 0, 0.15);
    color: #fcbf49;
}

.strength-text.strong {
    background: rgba(78, 205, 196, 0.15);
    color: #4ecdc4;
}

/* Footer */
footer {
    background: rgba(15, 32, 39, 0.95);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(232, 244, 248, 0.1);
    padding: 30px 40px;
    margin-top: 60px;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 58, 82, 0.3) 0%, rgba(44, 83, 100, 0.3) 100%);
    z-index: 0;
}

footer .footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 1370px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

footer .footer .logo {
    text-align: center;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

footer .footer .logo img {
    height: 80px;
    width: auto;
    filter: drop-shadow(0 4px 12px rgba(78, 205, 196, 0.3));
}

footer .footer .footer-col {
    text-align: center;
    width: 100%;
}

footer .footer .social-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 10px;
}

footer .footer .social-icon {
    display: block;
    transition: all 0.3s ease;
}

footer .footer .social-icon img {
    height: 50px;
    width: auto;
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.3));
}

footer .footer .social-icon:hover img {
    transform: translateY(-5px) scale(1.1);
    filter: drop-shadow(0 6px 12px rgba(78, 205, 196, 0.6));
}

/* Responsive Design */
@media (max-width: 1200px) {
    .content-grid {
        grid-template-columns: 1fr;
        max-width: 600px;
    }

    .left-panel {
        display: block;
        padding: 40px 30px;
    }

    .panel-content {
        padding: 20px;
    }

    .panel-title {
        font-size: 42px;
    }

    .form-selector {
        margin-top: 40px;
        gap: 15px;
    }

    .selector-btn {
        max-width: 100%;
    }

    .right-panel {
        padding: 40px 30px;
    }
}

@media (max-width: 768px) {
    .nav-wrapper {
        padding: 0 20px;
        flex-direction: column;
        gap: 15px;
    }

    .brand-text {
        font-size: 16px;
    }

    .brand-logo {
        height: 35px;
    }

    .nav-actions {
        gap: 10px;
    }

    .nav-btn {
        font-size: 12px;
        padding: 6px 14px;
    }

    .nav-btn-img img {
        height: 35px;
    }

    .page-wrapper {
        padding-top: 120px;
    }

    .content-grid {
        margin: 20px;
        min-height: auto;
    }

    .left-panel {
        padding: 30px 20px;
    }

    .panel-content {
        padding: 10px;
    }

    .panel-title {
        font-size: 36px;
    }

    .panel-subtitle {
        font-size: 16px;
    }

    .panel-image {
        margin: 25px 0;
    }

    .account-icon {
        max-height: 170px;
    }

    .form-selector {
        margin-top: 30px;
        gap: 12px;
    }

    .selector-btn {
        max-width: 100%;
    }

    .right-panel {
        padding: 30px 20px;
    }

    .form-title {
        font-size: 24px;
    }

    .form-desc {
        font-size: 13px;
    }

    .input-row {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .captcha-wrapper {
        flex-direction: column;
        align-items: stretch;
    }

    .captcha-box {
        width: 100%;
    }

    .submit-btn {
        padding: 14px 24px;
        font-size: 14px;
    }

    .page-footer {
        padding: 25px 20px;
        margin-top: 40px;
    }

    .footer-links {
        gap: 10px;
    }

    .footer-links a {
        font-size: 13px;
    }

    footer .footer {
        padding: 15px;
    }

    footer .footer .logo img {
        height: 60px;
    }

    footer .footer .social-icon img {
        height: 40px;
    }

    footer .footer .social-links {
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .panel-title {
        font-size: 28px;
    }

    .panel-subtitle {
        font-size: 14px;
    }

    .panel-image {
        margin: 20px 0;
    }

    .account-icon {
        max-height: 150px;
    }

    .form-selector {
        margin-top: 25px;
        gap: 10px;
    }

    .selector-btn .selector-img {
        max-width: 100%;
        height: auto;
    }

    .form-title {
        font-size: 20px;
    }

    .input-field {
        padding: 12px 14px;
        font-size: 14px;
    }

    .captcha-box {
        font-size: 18px;
        padding: 12px 20px;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(26, 58, 82, 0.3);
}

::-webkit-scrollbar-thumb {
    background: rgba(78, 205, 196, 0.5);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(78, 205, 196, 0.7);
}
