/* ========================================
   Organizer Authentication Pages Stylesheet
   ======================================== */

:root {
    --primary-purple: #8E07B0;
    --primary-purple-hover: #70098a;
    --primary-purple-dark: #632074;
    --text-dark: #1F2937;
    --text-gray: #6B7280;
    --bg-light: #F9FAFB;
    --border-color: #E5E7EB;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-light);
    color: var(--text-dark);
    overflow-x: hidden;
}

/* ========================================
   Layout & Container
   ======================================== */

.auth-container {
    min-height: 100vh;
    display: flex;
}

.auth-image-section {
    position: relative;
    overflow: hidden;
    padding: 0;
}

.auth-image-wrapper {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
}

.auth-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center bottom;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(139, 53, 237, 0.15) 0%, rgba(124, 58, 237, 0.05) 100%);
}

.auth-form-section {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    background: white;
    min-height: 100vh;
}

.auth-form-container {
    padding-top: 20px;
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
}

/* ========================================
   Header & Logo
   ======================================== */

.auth-logo {
    text-align: center;
    margin-bottom: 30px;
}

.auth-logo img {
    max-height: 50px;
    width: auto;
}

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

.auth-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.auth-header p {
    font-size: 14px;
    color: var(--text-gray);
    margin: 0;
}

/* ========================================
   Forms & Inputs
   ======================================== */

.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-gray);
    margin-bottom: 8px;
    display: block;
}

.form-control {
    height: 50px;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 12px 16px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: white;
}

.form-control:focus {
    border-color: var(--primary-purple);
    box-shadow: 0 0 0 3px rgba(139, 53, 237, 0.1);
    outline: none;
}

.form-control::placeholder {
    color: #9CA3AF;
}

textarea.form-control {
    height: auto;
    min-height: 100px;
    resize: vertical;
}

/* ========================================
   Buttons
   ======================================== */

.btn-primary {
    width: 100%;
    height: 50px;
    background: var(--primary-purple);
    border: none;
    border-radius: 16px;
    color: white;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    background: var(--primary-purple-hover);
    transform: translateY(-1px);
    box-shadow: 0 10px 25px rgba(139, 53, 237, 0.3);
}

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

.btn-secondary {
    width: 100%;
    height: 50px;
    background: #E5E7EB;
    border: none;
    border-radius: 16px;
    color: var(--text-dark);
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    margin-top: 12px;
}

.btn-secondary:hover {
    background: #D1D5DB;
}

/* ========================================
   Social Login
   ======================================== */

.social-login {
    margin-top: 24px;
}

.social-login-divider {
    text-align: center;
    margin: 24px 0;
    position: relative;
}

.social-login-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border-color);
}

.social-login-divider span {
    background: white;
    padding: 0 16px;
    position: relative;
    color: var(--text-gray);
    font-size: 13px;
}

.social-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.btn-social {
    height: 50px;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-social:hover {
    border-color: var(--primary-purple);
    background: #F9FAFB;
}

.btn-social i {
    font-size: 18px;
}

/* ========================================
   Checkbox & Remember Me
   ======================================== */

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

.custom-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary-purple);
}

.custom-checkbox label {
    font-size: 14px;
    color: var(--text-dark);
    margin: 0;
    cursor: pointer;
}

.remember-forgot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.forgot-link {
    font-size: 14px;
    color: var(--primary-purple);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.forgot-link:hover {
    color: var(--primary-purple-dark);
    text-decoration: none;
}

/* ========================================
   Footer & Links
   ======================================== */

.auth-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: var(--text-gray);
}

.auth-footer a {
    color: var(--primary-purple);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.auth-footer a:hover {
    color: var(--primary-purple-dark);
    text-decoration: none;
}

/* ========================================
   Alerts & Messages
   ======================================== */

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

.alert-success {
    background: #ECFDF5;
    color: #065F46;
}

.alert-danger {
    background: #FEF2F2;
    color: #991B1B;
}

.alert-info {
    background: #EFF6FF;
    color: #1E40AF;
}

/* ========================================
   OTP Input
   ======================================== */

.otp-inputs {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin: 30px 0;
}

.otp-input {
    width: 56px;
    height: 56px;
    text-align: center;
    font-size: 24px;
    font-weight: 600;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.otp-input:focus {
    border-color: var(--primary-purple);
    box-shadow: 0 0 0 3px rgba(139, 53, 237, 0.1);
    outline: none;
}

.resend-timer {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: var(--text-gray);
}

.resend-link {
    color: var(--primary-purple);
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
}

.resend-link:hover {
    color: var(--primary-purple-dark);
    text-decoration: underline;
}

.resend-link.disabled {
    color: var(--text-gray);
    cursor: not-allowed;
    pointer-events: none;
}

/* ========================================
   Upload Area
   ======================================== */

.upload-area {
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    padding: 24px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    background: #F9FAFB;
}

.upload-area:hover {
    border-color: var(--primary-purple);
    background: rgba(139, 53, 237, 0.02);
}

.upload-area i {
    font-size: 32px;
    color: var(--primary-purple);
    margin-bottom: 12px;
}

.upload-area p {
    margin: 0;
    font-size: 14px;
    color: var(--text-gray);
}

/* ========================================
   Profile Upload Section
   ======================================== */

.profile-image-preview {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-purple);
}

.profile-upload-section {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
    padding: 20px;
    background: #F9FAFB;
    border-radius: 8px;
}

.profile-info h6 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 4px 0;
}

.profile-info p {
    font-size: 13px;
    color: var(--text-gray);
    margin: 0;
}

.btn-upload {
    background: var(--primary-purple);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-upload:hover {
    background: var(--primary-purple-hover);
}

/* ========================================
   Error States
   ======================================== */

.has-error .form-control {
    border-color: #DC2626;
}

.help-block {
    font-size: 13px;
    color: #DC2626;
    margin-top: 6px;
}

/* ========================================
   Loading Spinner
   ======================================== */

.spinner-border {
    width: 20px;
    height: 20px;
    border-width: 2px;
}

/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 767px) {
    .auth-image-section {
        display: none;
    }

    .auth-form-section:not('.auth-form') {
        padding: 0px 15px;
    }

    .auth-form {
        display: initial;
        padding: 0px 15px;
    }

    .auth-header h1 {
        font-size: 24px;
    }

    .otp-input {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }
}

/* ========================================
   Utility Classes
   ======================================== */

.text-muted {
    color: var(--text-gray);
}

.mb-0 {
    margin-bottom: 0 !important;
}

.mt-2 {
    margin-top: 8px;
}

.mt-3 {
    margin-top: 12px;
}

.mr-2 {
    margin-right: 8px;
}