/* Login & Register Page Styles */

.login-container {
    display: flex;
    min-height: 100vh;
    background: var(--bg-color);
}

/* Left side - Minecraft scene */
.login-left {
    flex: 1;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    padding: 60px;
    background: linear-gradient(135deg, #0a0a0a 0%, #141414 100%);
}

.login-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
}

.login-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, transparent 50%);
}

.login-promo {
    position: relative;
    z-index: 2;
    max-width: 500px;
}

.login-promo h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    color: #fff;
}

.login-promo p {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.6;
}

.create-account-btn {
    margin-top: 30px;
    padding: 14px 32px;
    background: linear-gradient(135deg, var(--primary-color), #00ff9d);
    color: #000;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.create-account-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 217, 143, 0.4);
}

/* Right side - Form */
.login-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
    background: var(--card-bg);
}

.login-form-container {
    width: 100%;
    max-width: 450px;
}

.login-header {
    text-align: center;
    margin-bottom: 40px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 30px;
    transition: color 0.3s;
}

.back-link:hover {
    color: var(--primary-color);
}

.login-header h1 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.login-header h1 span {
    background: linear-gradient(135deg, var(--primary-color), #00ff9d);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.login-header p {
    color: var(--text-muted);
}

/* Form styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.95rem;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-main);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 217, 143, 0.1);
}

.form-input::placeholder {
    color: #555;
}

.input-icon {
    position: relative;
}

.input-icon i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.input-icon .form-input {
    padding-left: 45px;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checkbox-group label {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    cursor: pointer;
}

.forgot-link {
    color: var(--primary-color);
    font-size: 0.9rem;
    transition: opacity 0.3s;
}

.forgot-link:hover {
    opacity: 0.8;
}

.login-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--primary-color), #00ff9d);
    color: #000;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 217, 143, 0.3);
}

.login-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.register-link {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.register-link a {
    color: var(--primary-color);
    font-weight: 600;
    margin-left: 5px;
}

.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.alert-success {
    background: rgba(0, 217, 143, 0.1);
    border: 1px solid rgba(0, 217, 143, 0.3);
    color: var(--primary-color);
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

/* Responsive */
@media (max-width: 968px) {
    .login-container {
        flex-direction: column;
    }

    .login-left {
        min-height: 300px;
        padding: 40px 20px;
    }

    .login-promo h2 {
        font-size: 2rem;
    }

    .login-right {
        padding: 40px 20px;
    }
}

/* Loading spinner */
.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(0, 0, 0, 0.3);
    border-top-color: #000;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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