/* ============================================
   AUTHENTICATION - Split Screen Layout
   Black & Yellow Theme
   ============================================ */

/* --------------------------------------------
   CONTAINER
--------------------------------------------- */
.auth-container {
    display: flex;
    min-height: 100vh;
    background: #0a0a0a;
    overflow: hidden;
}

/* --------------------------------------------
   VISUAL SIDE (Left)
--------------------------------------------- */
.auth-visual {
    flex: 0 0 55%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px 40px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(145deg, #1a1a1a 0%, #0d0d0d 100%);
}

/* Animated gradient overlay */
.auth-visual::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 50%, rgba(255, 215, 0, 0.08) 0%, transparent 70%);
    animation: pulseGlow 4s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* Decorative circles */
.auth-visual::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.05) 0%, transparent 70%);
    top: -100px;
    right: -100px;
    animation: floatCircle 8s ease-in-out infinite;
}

@keyframes floatCircle {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-30px, 20px) scale(1.1); }
}

/* Icon container */
.auth-visual-icon {
    position: relative;
    z-index: 1;
    font-size: 120px;
    color: #ffd700;
    margin-bottom: 30px;
    animation: floatIcon 6s ease-in-out infinite;
    filter: drop-shadow(0 0 40px rgba(255, 215, 0, 0.2));
}

@keyframes floatIcon {
    0%, 100% { transform: translateY(0) rotate(-3deg); }
    50% { transform: translateY(-15px) rotate(3deg); }
}

/* Decorative music notes floating */
.note-float {
    position: absolute;
    color: rgba(255, 215, 0, 0.08);
    font-size: 40px;
    animation: floatNote 12s linear infinite;
    z-index: 0;
}

.note-float:nth-child(1) { top: 10%; left: 10%; animation-delay: 0s; }
.note-float:nth-child(2) { top: 60%; left: 5%; animation-delay: 3s; font-size: 30px; }
.note-float:nth-child(3) { top: 20%; right: 15%; animation-delay: 6s; font-size: 50px; }
.note-float:nth-child(4) { bottom: 20%; right: 10%; animation-delay: 9s; font-size: 35px; }

@keyframes floatNote {
    0% { transform: translateY(0) rotate(0deg); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-100px) rotate(360deg); opacity: 0; }
}

/* Visual text */
.auth-visual h1 {
    position: relative;
    z-index: 1;
    font-size: 42px;
    font-weight: 700;
    color: #ffffff;
    text-align: center;
    margin: 10px 0;
    line-height: 1.2;
}

.auth-visual h1 span {
    color: #ffd700;
    display: block;
    font-size: 28px;
    font-weight: 300;
    margin-top: 8px;
}

.auth-visual p {
    position: relative;
    z-index: 1;
    color: #999;
    font-size: 16px;
    text-align: center;
    max-width: 360px;
    margin-top: 12px;
}

/* --------------------------------------------
   FORM SIDE (Right)
--------------------------------------------- */
.auth-form {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px 50px;
    background: #0f0f0f;
    position: relative;
}

.auth-form-inner {
    max-width: 420px;
    width: 100%;
    margin: 0 auto;
}

/* Logo on form side */
.auth-form-logo {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 2px;
    margin-bottom: 30px;
}

.auth-form-logo span {
    color: #ffd700;
}

/* Form title */
.auth-form-title {
    font-size: 26px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 6px;
}

.auth-form-subtitle {
    font-size: 14px;
    color: #888;
    margin-bottom: 28px;
}

/* --------------------------------------------
   ROLE SELECTION CARDS (Register Only)
--------------------------------------------- */
.role-selection {
    margin-bottom: 24px;
}

.role-selection .role-label {
    font-weight: 500;
    margin-bottom: 10px;
    color: #aaa;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.role-options {
    display: flex;
    gap: 12px;
}

.role-option {
    flex: 1;
    cursor: pointer;
}

.role-option input[type="radio"] {
    display: none;
}

.role-option .role-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 12px;
    border: 2px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.02);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.role-option .role-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.05), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.role-option input[type="radio"]:checked + .role-card {
    border-color: #ffd700;
    background: rgba(255, 215, 0, 0.06);
    transform: scale(1.02);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.06);
}

.role-option input[type="radio"]:checked + .role-card::before {
    opacity: 1;
}

.role-option .role-icon {
    font-size: 28px;
    margin-bottom: 6px;
    color: #666;
    transition: color 0.3s ease;
}

.role-option input[type="radio"]:checked + .role-card .role-icon {
    color: #ffd700;
}

.role-option .role-name {
    font-weight: 600;
    color: #fff;
    font-size: 14px;
}

.role-option .role-desc {
    font-size: 11px;
    color: #666;
    margin-top: 2px;
}

/* --------------------------------------------
   FORM FIELDS
--------------------------------------------- */
.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #ccc;
    margin-bottom: 6px;
}

.form-group .required {
    color: #ffd700;
}

.form-group .form-control {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    transition: all 0.3s ease;
    outline: none;
}

.form-group .form-control:focus {
    border-color: #ffd700;
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.1);
    background: rgba(255, 255, 255, 0.06);
}

.form-group .form-control::placeholder {
    color: #555;
}

/* Password toggle */
.password-wrapper {
    position: relative;
}

.password-wrapper .form-control {
    padding-right: 44px;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #666;
    font-size: 18px;
    transition: color 0.3s ease;
    background: none;
    border: none;
    padding: 4px;
}

.password-toggle:hover {
    color: #ffd700;
}

/* --------------------------------------------
   CHECKBOX
--------------------------------------------- */
.checkbox-group {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 6px 0 18px;
}

.checkbox-group input[type="checkbox"] {
    appearance: none;
    width: 18px;
    height: 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    position: relative;
}

.checkbox-group input[type="checkbox"]:checked {
    background: #ffd700;
    border-color: #ffd700;
}

.checkbox-group input[type="checkbox"]:checked::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #000;
    font-size: 11px;
}

.checkbox-group label {
    color: #aaa;
    font-size: 13px;
    cursor: pointer;
    margin: 0;
}

/* --------------------------------------------
   BUTTONS
--------------------------------------------- */
.btn-gold {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #ffd700, #f0c800);
    color: #000;
    font-weight: 600;
    font-size: 15px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    margin-top: 6px;
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 215, 0, 0.25);
}

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

/* --------------------------------------------
   LINKS
--------------------------------------------- */
.auth-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
    font-size: 13px;
}

.auth-links a {
    color: #888;
    text-decoration: none;
    transition: color 0.3s ease;
}

.auth-links a:hover {
    color: #ffd700;
}

.auth-switch {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.auth-switch a {
    color: #ffd700;
    text-decoration: none;
    font-weight: 500;
}

.auth-switch a:hover {
    text-decoration: underline;
}

/* --------------------------------------------
   ARTIST FIELDS (Register)
--------------------------------------------- */
#artist-fields {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 20px;
    margin-top: 6px;
    animation: slideDown 0.4s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#artist-fields h3 {
    color: #ffd700;
    font-size: 15px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

#artist-fields .form-group small {
    color: #666;
    font-size: 11px;
    display: block;
    margin-top: 3px;
}

/* --------------------------------------------
   ERROR MESSAGES
--------------------------------------------- */
.error-message {
    color: #ff6b6b;
    font-size: 12px;
    display: block;
    margin-top: 4px;
}

.password-hint,
.password-hint-confirm {
    color: #ff6b6b;
    font-size: 12px;
    display: block;
    margin-top: 4px;
}

/* --------------------------------------------
   RESPONSIVE
--------------------------------------------- */
@media (max-width: 992px) {
    .auth-visual {
        display: none;
    }
    
    .auth-form {
        flex: 1;
        padding: 40px 30px;
        justify-content: center;
        min-height: 100vh;
    }
    
    .auth-form-inner {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .auth-form {
        padding: 30px 20px;
    }
    
    .role-options {
        flex-direction: column;
        gap: 8px;
    }
    
    .role-option .role-card {
        flex-direction: row;
        padding: 12px 16px;
        gap: 12px;
    }
    
    .role-option .role-icon {
        font-size: 22px;
        margin-bottom: 0;
    }
    
    .auth-form-title {
        font-size: 22px;
    }
    
    .auth-links {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }
}

/* --------------------------------------------
   VISUAL SIDE (Left)
--------------------------------------------- */
.auth-visual {
    flex: 0 0 55%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px 40px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(145deg, #1a1a1a 0%, #0d0d0d 100%);
}

/* Image styling */
.auth-visual-image {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 16px;
    object-fit: cover;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    margin-bottom: 30px;
    transition: all 0.5s ease;
    border: 1px solid rgba(255, 215, 0, 0.1);
}

.auth-visual-image:hover {
    transform: scale(1.02);
    box-shadow: 0 30px 80px rgba(255, 215, 0, 0.08);
}

/* Visual text - updated positioning */
.auth-visual h1 {
    position: relative;
    z-index: 1;
    font-size: 42px;
    font-weight: 700;
    color: #ffffff;
    text-align: center;
    margin: 10px 0;
    line-height: 1.2;
}

.auth-visual h1 span {
    color: #ffd700;
    display: block;
    font-size: 28px;
    font-weight: 300;
    margin-top: 8px;
}

.auth-visual p {
    position: relative;
    z-index: 1;
    color: #999;
    font-size: 16px;
    text-align: center;
    max-width: 360px;
    margin-top: 12px;
}

/* Remove floating note animations */
.note-float {
    display: none;
}

.auth-visual::before,
.auth-visual::after {
    display: none;
}

/* ============================================
   AUTH CONTAINER - Fixed Height
   ============================================ */
.auth-container {
    display: flex;
    min-height: 100vh;
    background: #0a0a0a;
    overflow: hidden;
}

/* ============================================
   VISUAL SIDE - Fixed Proportions
   ============================================ */
.auth-visual {
    flex: 0 0 55%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 40px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(145deg, #1a1a1a 0%, #0d0d0d 100%);
    min-height: 100vh;
}

.auth-visual-image {
    width: 100%;
    max-width: 480px;
    height: auto;
    max-height: 380px;
    border-radius: 16px;
    object-fit: cover;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    margin-bottom: 24px;
    transition: all 0.5s ease;
    border: 1px solid rgba(255, 215, 0, 0.08);
}

.auth-visual h1 {
    font-size: 36px;
    font-weight: 700;
    color: #ffffff;
    text-align: center;
    margin: 6px 0;
    line-height: 1.2;
}

.auth-visual h1 span {
    color: #ffd700;
    display: block;
    font-size: 24px;
    font-weight: 300;
    margin-top: 4px;
}

.auth-visual p {
    color: #888;
    font-size: 14px;
    text-align: center;
    max-width: 340px;
    margin-top: 8px;
}

/* ============================================
   FORM SIDE - Scrollable if needed
   ============================================ */
.auth-form {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px 50px;
    background: #0f0f0f;
    position: relative;
    min-height: 100vh;
    overflow-y: auto;
}

.auth-form-inner {
    max-width: 420px;
    width: 100%;
    margin: 0 auto;
    padding: 10px 0;
}

/* ============================================
   FORM ELEMENTS - Compact for Balance
   ============================================ */
.auth-form-logo {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.auth-form-title {
    font-size: 24px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 4px;
}

.auth-form-subtitle {
    font-size: 13px;
    color: #888;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 14px;
}

.form-group label {
    font-size: 12px;
    font-weight: 500;
    color: #ccc;
    margin-bottom: 4px;
}

.form-group .form-control {
    padding: 10px 14px;
    font-size: 13px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    color: #fff;
    transition: all 0.3s ease;
    outline: none;
    width: 100%;
}

.password-wrapper .form-control {
    padding-right: 40px;
}

.password-toggle {
    font-size: 16px;
    padding: 4px;
}

/* Checkbox - Compact */
.checkbox-group {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 4px 0 14px;
}

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

.checkbox-group label {
    font-size: 12px;
    color: #aaa;
}

/* Button - Compact */
.btn-gold {
    padding: 12px;
    font-size: 14px;
    margin-top: 4px;
}

/* Auth Links */
.auth-links {
    margin-top: 12px;
    font-size: 12px;
}

/* ============================================
   ROLE SELECTION - Compact
   ============================================ */
.role-selection {
    margin-bottom: 16px;
}

.role-selection .role-label {
    font-size: 11px;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.role-options {
    gap: 8px;
}

.role-option .role-card {
    padding: 10px 12px;
    border-radius: 8px;
}

.role-option .role-icon {
    font-size: 22px;
    margin-bottom: 2px;
}

.role-option .role-name {
    font-size: 12px;
}

.role-option .role-desc {
    font-size: 10px;
}

/* ============================================
   ARTIST FIELDS - Compact
   ============================================ */
#artist-fields {
    padding-top: 12px;
    margin-top: 2px;
}

#artist-fields h3 {
    font-size: 13px;
    margin-bottom: 10px;
}

#artist-fields .form-group small {
    font-size: 10px;
}

/* ============================================
   RESPONSIVE - Mobile
   ============================================ */
@media (max-width: 992px) {
    .auth-visual {
        display: none;
    }
    
    .auth-form {
        flex: 1;
        padding: 30px 24px;
        min-height: 100vh;
        justify-content: center;
    }
    
    .auth-form-inner {
        max-width: 100%;
        padding: 0;
    }
}

@media (max-width: 480px) {
    .auth-form {
        padding: 24px 16px;
    }
    
    .auth-form-title {
        font-size: 20px;
    }
    
    .role-options {
        flex-direction: column;
        gap: 6px;
    }
    
    .role-option .role-card {
        flex-direction: row;
        padding: 10px 14px;
        gap: 10px;
    }
    
    .role-option .role-icon {
        font-size: 18px;
        margin-bottom: 0;
    }
}


/* ============================================
   ACCOUNT DASHBOARD - Logged In User
   ============================================ */

.account-dashboard {
    width: 100%;
}

/* Welcome Section */
.account-welcome {
    margin-bottom: 24px;
}

.account-welcome h2 {
    font-size: 24px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 6px;
}

.account-welcome .welcome-text {
    font-size: 14px;
    color: #aaa;
    margin: 0;
}

.account-welcome .welcome-text strong {
    color: #ffd700;
}

.account-welcome .not-you {
    color: #666;
    font-size: 13px;
}

.account-welcome .not-you a {
    color: #ff6b6b;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.account-welcome .not-you a:hover {
    color: #ff4444;
    text-decoration: underline;
}

/* Account Details */
.account-details {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 24px;
}

.account-details .detail-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 0;
    color: #ccc;
    font-size: 14px;
}

.account-details .detail-item i {
    color: #ffd700;
    width: 18px;
    text-align: center;
    font-size: 14px;
}

.account-details .detail-item span {
    color: #fff;
}

/* Account Cards */
.account-sections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

.account-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 16px;
    text-align: center;
    transition: all 0.3s ease;
}

.account-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 215, 0, 0.2);
    box-shadow: 0 8px 30px rgba(255, 215, 0, 0.05);
}

.account-card i {
    font-size: 28px;
    color: #ffd700;
    margin-bottom: 8px;
    display: block;
}

.account-card h3 {
    font-size: 14px;
    color: #fff;
    margin: 0 0 4px 0;
}

.account-card p {
    font-size: 12px;
    color: #888;
    margin: 0 0 8px 0;
}

.account-card .card-link {
    font-size: 12px;
    color: #ffd700;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.account-card .card-link:hover {
    color: #fff;
}

/* Logout Button */
.account-logout {
    text-align: center;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.btn-logout {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 32px;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 8px;
    color: #ffd700;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-logout:hover {
    background: rgba(255, 215, 0, 0.2);
    border-color: #ffd700;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 215, 0, 0.1);
}

.btn-logout i {
    font-size: 16px;
}

/* ============================================
   RESPONSIVE - Account Dashboard
   ============================================ */
@media (max-width: 992px) {
    .account-sections {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .account-sections {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .account-welcome .welcome-text {
        font-size: 13px;
    }
    
    .account-details .detail-item {
        font-size: 13px;
    }
    
    .account-card i {
        font-size: 24px;
    }
}