/* Main Container */
.user-auth-container {
    max-width: 600px;
    margin: 40px auto;
    padding: 0 20px;
}

.btn-login, .btn-register, .btn-reset {
    width: 100% !important;
    border-radius: 5px 0px 5px 0px !important;
    border: 0px !important;
    background: white !important;
    padding: 12px !important;
    color: #0E0E0E !important;
    font-weight: 700 !important;
}



/* Card Styling */
.user-auth-card {
    background: rgba(25, 25, 25, 0.6);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(14.8px);
    -webkit-backdrop-filter: blur(14.8px);
    border: 1px solid rgba(25, 25, 25, 0.3);
    padding: 40px;
    position: relative;
}

/* Header */
.user-auth-header {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

.user-auth-header h2 {
    color: white;
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 10px 0;
    letter-spacing: -0.5px;
}

.user-auth-subtitle {
    color: white;
    font-size: 16px;
    line-height: 1.5;
    margin: 0;
    opacity: 0.9;
}

.home-button-link {
    position: absolute;
    top: -8px;
    right: 0;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: #ffffff;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.home-button-link:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

/* Form Elements */
.user-auth-form {
    margin-top: 20px;
}

.form-group {
    margin-bottom: 25px;
}

.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.form-group.half {
    flex: 1;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: white;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Input Fields */
.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 16px;
    color: #666;
    font-size: 18px;
    z-index: 1;
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #f8f9fa;
    box-sizing: border-box;
}

.input-with-icon .form-control {
    padding-right: 48px;
}

.input-with-icon.no-left-icon .form-control {
    padding-left: 16px;
}

.form-control:focus {
    outline: none;
    border-color: #4a90e2;
    background: white;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.toggle-password {
    position: absolute;
    right: 16px;
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 18px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: normal;
    text-transform: none;
    letter-spacing: normal;
    color: rgba(255, 255, 255, 0.9);
}

.checkbox-label input {
    margin-right: 8px;
}

.forgot-password-link {
    color: #7db7ff;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: color 0.3s ease;
}

.forgot-password-link:hover {
    color: #357abd;
    text-decoration: underline;
}

/* Buttons */
.btn-login,
.btn-register,
.btn-reset {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
}

.btn-login:hover,
.btn-register:hover,
.btn-reset:hover {
    background: linear-gradient(135deg, #357abd 0%, #2a5f91 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.4);
}

.btn-login:active,
.btn-register:active,
.btn-reset:active {
    transform: translateY(0);
}

/* Form Footer */
.form-footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.form-footer p {
    color: rgba(255, 255, 255, 0.92);
    margin: 0;
}

.register-link,
.login-link,
.back-to-login {
    color: #4a90e2;
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s ease;
}

.register-link:hover,
.login-link:hover,
.back-to-login:hover {
    color: #357abd;
    text-decoration: underline;
}

/* Messages */
.user-auth-message {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 500;
}

.user-auth-message.success {
    background: #e8f5e9;
    border: 1px solid #c8e6c9;
    color: #2e7d32;
}

.user-auth-message.error {
    background: #ffebee;
    border: 1px solid #ffcdd2;
    color: #c62828;
}

.user-auth-message.info {
    background: #e3f2fd;
    border: 1px solid #bbdefb;
    color: #1565c0;
}

/* Already Logged In */
.user-auth-already-logged-in {
    text-align: center;
    padding: 40px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.user-auth-already-logged-in .button {
    margin-top: 20px;
    padding: 12px 30px;
    background: #4a90e2;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    display: inline-block;
    font-weight: 600;
    transition: background 0.3s ease;
}

.user-auth-already-logged-in .button:hover {
    background: #357abd;
}

/* Password Hint */
.password-hint {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.85);
    margin-top: 5px;
    line-height: 1.4;
}

.verification-note {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

.social-signup {
    text-align: center;
    margin-top: 10px;
}

.social-signup p {
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
}

.social-signup-buttons {
    display: flex;
    gap: 10px;
}

.social-btn {
    flex: 1;
    display: inline-block;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    padding: 11px 10px;
    border-radius: 8px;
    border: 1px solid transparent;
}

.social-google {
    background: #ffffff;
    color: #1f1f1f;
}

.social-facebook {
    background: #1877f2;
    color: #ffffff;
}

.social-btn:hover {
    transform: translateY(-1px);
}

/* Loading Overlay */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    z-index: 100;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #4a90e2;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Verification Content */
.verification-content {
    text-align: center;
    padding: 30px 0;
}

.success-icon,
.error-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    font-weight: bold;
}

.success-icon {
    background: #e8f5e9;
    color: #2e7d32;
    border: 3px solid #c8e6c9;
}

.error-icon {
    background: #ffebee;
    color: #c62828;
    border: 3px solid #ffcdd2;
}

.verification-content h3 {
    color: #333;
    margin: 0 0 15px 0;
}

.verification-content p {
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .user-auth-card {
        padding: 30px 20px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 25px;
    }
    
    .user-auth-header h2 {
        font-size: 24px;
    }
    
    .user-auth-subtitle {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .user-auth-container {
        padding: 0 10px;
        margin: 20px auto;
    }
    
    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .forgot-password-link {
        align-self: flex-end;
    }

    .social-signup-buttons {
        flex-direction: column;
    }

    .home-button-link {
        position: static;
        display: inline-block;
        margin-bottom: 15px;
    }
}

/* Profile Page Styles */
.profile-page .user-auth-card {
    max-width: 1000px;
    width: 100%;
}

.profile-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
    padding: 25px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.meta-item .label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin: 0;
}

.meta-item .value {
    color: white;
    font-weight: 700;
    font-size: 18px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-left: 5px;
}

.section-header h3 {
    color: white;
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.count-badge {
    background: #fff;
    color: #000;
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 800;
}

.profile-submissions-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 12px;
}

.profile-submissions-table th {
    text-align: left;
    color: rgba(255, 255, 255, 0.4);
    font-size: 12px;
    text-transform: uppercase;
    padding: 10px 25px;
    font-weight: 700;
    letter-spacing: 1px;
}

.profile-submissions-table tbody tr {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.profile-submissions-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.profile-submissions-table td {
    padding: 22px 25px;
    color: white;
    vertical-align: middle;
}

.profile-submissions-table td:first-child { border-radius: 12px 0 0 12px; }
.profile-submissions-table td:last-child { border-radius: 0 12px 12px 0; }

.vehicle-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.vehicle-name {
    font-weight: 800;
    font-size: 17px;
    color: white;
}

.vehicle-year {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
}

.reg-no {
    font-family: 'Inter', sans-serif;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 6px 14px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-transform: uppercase;
}

.status-pill {
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
}

.status-pending { background: rgba(255, 165, 0, 0.15); color: #FFA500; border: 1px solid rgba(255, 165, 0, 0.3); }
.status-approved { background: rgba(46, 204, 113, 0.15); color: #2ecc71; border: 1px solid rgba(46, 204, 113, 0.3); }
.status-rejected { background: rgba(231, 76, 60, 0.15); color: #e74c3c; border: 1px solid rgba(231, 76, 60, 0.3); }

.profile-actions {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: flex-end;
}

.btn-logout-auth {
    display: inline-block;
    padding: 12px 35px;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none !important;
    border-radius: 10px;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-logout-auth:hover {
    background: #fff;
    color: #000;
    border-color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: rgba(255, 255, 255, 0.01);
    border: 2px dashed rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    color: rgba(255, 255, 255, 0.4);
}

@media (max-width: 900px) {
    .profile-submissions-table thead { display: none; }
    .profile-submissions-table td { 
        display: block; 
        text-align: right; 
        padding-left: 50%; 
        position: relative;
        border-radius: 0 !important;
    }
    .profile-submissions-table td::before {
        content: attr(data-label);
        position: absolute;
        left: 25px;
        width: 45%;
        text-align: left;
        font-weight: 700;
        color: rgba(255, 255, 255, 0.4);
        text-transform: uppercase;
        font-size: 11px;
    }
    .profile-submissions-table tr { 
        display: block; 
        margin-bottom: 20px; 
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 16px;
        overflow: hidden;
    }
}