 /* ============================================
   LOGIN PAGE STYLES
   ============================================ */

:root {
    --primary: #2F327D;
    --primary-light: #3d4099;
    --secondary: #F48C06;
    --heading: #1C1F35;
    --text: #666C89;
    --text-light: #9CA3AF;
    --white: #FFFFFF;
    --bg-light: #FAFBFC;
    --border: #E5E7EB;
    --danger: #EF4444;
    --success: #10B981;
    --shadow: 0 1px 3px rgba(47, 50, 125, 0.06);
    --shadow-lg: 0 8px 32px rgba(47, 50, 125, 0.12);
    --shadow-xl: 0 20px 40px rgba(47, 50, 125, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #f3f3f3;
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* ============================================
   LOGIN WRAPPER
   ============================================ */

.login-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Logo Section */
.logo-section {
    text-align: center;
    margin-bottom: 2rem;
    animation: slideDown 0.8s ease-out;
}

.logo-section img {
    height: 60px;
}

/* Login Container */
.login-container {
    background: var(--white);
    border-radius: 24px;
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 600px;
    animation: slideUp 0.8s ease-out;
}

/* ============================================
   WELCOME SECTION
   ============================================ */

.welcome-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.welcome-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
}

.welcome-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    backdrop-filter: blur(10px);
}

.welcome-section h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    font-weight: 600;
    color: #FAFBFC;
}

.welcome-section p {
    font-size: 1rem;
    opacity: 0.95;
    line-height: 1.5;
    color: #d8d8d8;
}

/* ============================================
   FORM SECTION
   ============================================ */

.form-section {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.form-header h1 {
    font-size: 2.5rem;
    color: var(--heading);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.highlight {
    color: var(--primary);
    position: relative;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--secondary);
    border-radius: 2px;
}

.form-header p {
    color: var(--text);
    font-size: 1rem;
}

/* ============================================
   ALERT STYLES
   ============================================ */

.alert {
    padding: 1rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    animation: slideIn 0.5s ease-out;
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: var(--danger);
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: var(--success);
}

.alert i {
    font-size: 1.25rem;
    margin-top: 0.125rem;
}

.alert span {
    flex: 1;
    font-weight: 500;
}

/* ============================================
   FORM STYLES
   ============================================ */

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--heading);
    font-size: 0.95rem;
}

.input-group {
    position: relative;
    display: flex;
    align-items: center;
    border: 2px solid #E0E0E0;
    border-radius: 12px;
    transition: all 0.3s ease;
    background: var(--white);
}

.input-group:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(47, 50, 125, 0.1);
}

.input-group-text {
    padding: 0 1rem;
    color: var(--text-light);
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
}

.input-group-append {
    padding: 0 1rem;
    color: var(--text-light);
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: color 0.3s ease;
}

.input-group-append:hover {
    color: var(--primary);
}

.form-control {
    flex: 1;
    padding: 1rem;
    border: none;
    background: transparent;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    color: var(--heading);
    outline: none;
}

.form-control::placeholder {
    color: var(--text-light);
}

/* ============================================
   FORM OPTIONS
   ============================================ */

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-check-input {
    width: 18px;
    height: 18px;
    border: 2px solid var(--border);
    border-radius: 4px;
    background: var(--white);
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.form-check-input:checked {
    background: var(--primary);
    border-color: var(--primary);
}

.form-check-input:checked::before {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--white);
    font-size: 12px;
    font-weight: bold;
}

.form-check-label {
    font-size: 0.95rem;
    color: var(--text);
    cursor: pointer;
    user-select: none;
}

        .social-inputs-group {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }
        
        .social-input-wrapper {
            display: flex;
            gap: 12px;
            align-items: flex-end;
        }
        
        
.social-input-row {
    margin-bottom: 10px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}
        .social-input-wrapper .form-group-register {
            margin-bottom: 0;
        }
        
.btn-remove-social {
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
    height: 38px;
    width: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
}
        
.btn-remove-social:hover {
    background: #c82333;
}
        
        .btn-add-social {
            background: #10B981;
            color: white;
            border: none;
            border-radius: 8px;
            padding: 10px 16px;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 14px;
            font-weight: 500;
            width: fit-content;
        }
        
        .btn-add-social:hover {
            background: #059669;
        }

/* ============================================
   BUTTON STYLES
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.btn-primary:hover:not(:disabled) {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-block {
    width: 100%;
}

.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}

.btn-loading {
    pointer-events: none;
}

.btn-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* ============================================
   LINK STYLES
   ============================================ */

.link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.link:hover {
    color: var(--primary-light);
    text-decoration: underline;
}

/* ============================================
   REGISTER LINK
   ============================================ */

.register-link {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    color: var(--text);
    font-size: 0.95rem;
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

@keyframes spin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.animate-slide-down {
    animation: slideDown 0.8s ease-out;
}

.animate-slide-in {
    animation: slideIn 0.5s ease-out;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1024px) {
    .login-container {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }
    
    /* TAMPILKAN welcome section di mobile dengan layout berbeda */
    .welcome-section {
        display: flex;
        padding: 2rem;
        text-align: center;
    }
    
    .welcome-section::before {
        display: none; /* hilangkan efek float di mobile */
    }
}

@media (max-width: 768px) {
    body {
        padding: 16px;
        /* Background tetap gradient di mobile */
        background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    }
    
    .login-container {
        box-shadow: var(--shadow-xl); /* tambahkan shadow di mobile */
        border-radius: 20px;
    }
    
    /* Pusatkan konten di mobile */
    .login-wrapper {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        min-height: 100vh;
    }
}

@media (max-width: 768px) {
    body {
        padding: 16px;
        background: var(--white);
    }
    
    .login-wrapper {
        max-width: 100%;
    }
    
    .login-container {
        box-shadow: none;
        border-radius: 0;
        min-height: auto;
    }
    
    .form-section {
        padding: 2rem;
    }
    
    .form-header h1 {
        font-size: 2rem;
    }
    
    .logo-section {
        margin-bottom: 1.5rem;
    }
    
    .logo-section img {
        height: 50px;
    }
}

@media (max-width: 480px) {
    .form-section {
        padding: 1.5rem;
    }
    
    .form-header h1 {
        font-size: 1.75rem;
    }
    
    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .input-group {
        flex-direction: row;
    }
    
    .form-control {
        padding: 0.875rem;
    }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for accessibility */
.form-control:focus,
.btn:focus,
.link:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --border: #000000;
        --text: #000000;
        --heading: #000000;
    }
    
    .input-group:focus-within {
        border-width: 3px;
    }
}

/* ============================================
   REGISTER PAGE STYLES
   ============================================ */

.register-wrapper {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Logo Section */
.logo-section {
    text-align: center;
    margin-bottom: 2rem;
    animation: slideDown 0.8s ease-out;
}

.logo-section img {
    height: 60px;
}

/* Register Container */
.register-container {
    background: var(--white);
    border-radius: 24px;
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    min-height: auto;
    animation: slideUp 0.8s ease-out;
    max-width: 1000px;
    margin: 0 auto;
}

/* Header Section */
.register-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.register-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
}

.icon-badge {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    backdrop-filter: blur(10px);
}

.register-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    color: var(--white);
}

.form-area h1 {
    font-size: 2.5rem;
    color: var(--heading);
    margin-bottom: 3.5rem;
    font-weight: 700;
    text-align: center;
}

.register-header p {
    font-size: 1.125rem;
    opacity: 0.9;
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
}

/* Form Elements */
.form-group-register {
    margin-bottom: 0;
}

/* Form Area */
.form-area {
    padding: 3rem;
}

.form-title {
    font-size: 2rem;
    color: var(--heading);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

/* Form Sections */
.form-section-register {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.form-section-register:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.section-label {
    display: block;
    color: var(--heading);
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 2rem;
    padding-left: 0.75rem;
    border-left: 3px solid var(--primary);
}

/* Form Layout */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-row.single {
    grid-template-columns: 1fr;
}

.form-row:last-child {
    margin-bottom: 0;
}



.form-text {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-light);
}

.invalid-feedback {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--danger);
    font-weight: 500;
}

.is-invalid {
    border-color: var(--danger) !important;
}

.is-invalid:focus-within {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}

/* Alert Styles */
.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.2);
    color: #F59E0B;
}

/* Form Footer */
.form-footer {
    text-align: center;
}

.btn-lg {
    padding: 1.25rem 2.5rem;
    font-size: 1.125rem;
}

.login-link {
    margin-top: 1.5rem;
    color: var(--text);
    font-size: 0.95rem;
}

/* Select Styles */
select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23666C89'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1rem;
    padding-right: 3rem;
}

/* Date Input Styles */
input[type="date"].form-control {
    position: relative;
}

input[type="date"].form-control::-webkit-calendar-picker-indicator {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: auto;
    height: auto;
    color: transparent;
    background: transparent;
    cursor: pointer;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1024px) {
    .register-container {
        max-width: 800px;
    }
    
    .form-area {
        padding: 2.5rem;
    }
}

@media (max-width: 768px) {
    .register-wrapper {
        padding: 16px;
    }
    
    .register-container {
        border-radius: 20px;
    }
    
    .register-header {
        padding: 2rem 1.5rem;
    }
    
    .register-header h1 {
        font-size: 2rem;
    }
    
    .form-area {
        padding: 2rem;
    }
    
    .form-title {
        font-size: 1.75rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .logo-section img {
        height: 50px;
    }
}

@media (max-width: 480px) {
    .register-header {
        padding: 1.5rem 1rem;
    }
    
    .register-header h1 {
        font-size: 1.75rem;
    }
    
    .icon-badge {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .form-area {
        padding: 1.5rem;
    }
    
    .form-title {
        font-size: 1.5rem;
    }
    
    .btn-lg {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
}

/* Loading State */
.btn-loading {
    pointer-events: none;
}

.btn-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Animation for form sections */
.form-section-register {
    animation: fadeInUp 0.6s ease-out;
}

.form-section-register:nth-child(2) {
    animation-delay: 0.1s;
}

.form-section-register:nth-child(3) {
    animation-delay: 0.2s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 400px) {
    /* Prevent horizontal overflow */
    body {
        overflow-x: hidden;
    }
    
    /* Register Container */
    .register-wrapper {
        padding: 0.75rem; /* 12px */
    }
    
    .register-container {
        max-width: 100%;
        border-radius: 1rem; /* 16px */
    }
    
    /* Header Section */
    .register-header {
        padding: 1.25rem 1rem; /* 20px 16px */
    }
    
    .register-header h1 {
        font-size: 1.5rem; /* 24px */
        line-height: 1.2;
    }
    
    .register-header p {
        font-size: 0.9375rem; /* 15px */
        line-height: 1.5;
    }
    
    .icon-badge {
        width: 56px;
        height: 56px;
        font-size: 1.375rem; /* 22px */
        margin-bottom: 1rem;
        border-radius: 0.75rem; /* 12px */
    }
    
    /* Form Area */
    .form-area {
        padding: 1.25rem; /* 20px */
    }
    
    .form-area h1 {
        font-size: 1.625rem; /* 26px */
        margin-bottom: 2rem;
    }
    
    /* Section Labels */
    .section-label {
        font-size: 1.125rem; /* 18px */
        margin-bottom: 1.25rem; /* 20px */
        padding-left: 0.5rem; /* 8px */
    }
    
    /* Form Sections */
    .form-section-register {
        margin-bottom: 2rem; /* 32px */
        padding-bottom: 1.5rem; /* 24px */
    }
    
    /* CRITICAL: Form Rows - Force Single Column */
    .form-row {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 1rem !important; /* 16px */
        margin-bottom: 1rem !important;
    }
    
    .form-row.single {
        grid-template-columns: 1fr !important;
    }
    
    /* Form Groups */
    .form-group-register {
        width: 100%;
        min-width: 0; /* Allow shrinking */
        margin-bottom: 0;
    }
    
    /* Labels */
    .form-label {
        font-size: 0.875rem; /* 14px */
        margin-bottom: 0.375rem; /* 6px */
    }
    
    /* Input Groups - CRITICAL */
    .input-group {
        min-width: 0 !important;
        width: 100% !important;
        flex-wrap: nowrap;
        border-radius: 0.75rem; /* 12px */
    }
    
    .input-group-text {
        padding: 0 0.75rem; /* 0 12px */
        font-size: 0.9375rem; /* 15px */
        flex-shrink: 0;
    }
    
    .input-group-text i {
        font-size: 1rem; /* 16px */
    }
    
    .input-group-append {
        padding: 0 0.75rem;
    }
    
    /* Form Controls - CRITICAL */
    .form-control {
        padding: 0.75rem; /* 12px */
        font-size: 0.9375rem !important; /* 15px */
        min-width: 0 !important; /* Allow shrinking */
        width: 100% !important;
    }
    
    .form-control::placeholder {
        font-size: 0.875rem; /* 14px */
    }
    
    /* Select Dropdown */
    select.form-control {
        padding-right: 2.5rem; /* 40px */
        background-size: 0.875rem; /* 14px */
        background-position: right 0.75rem center;
    }
    
    /* Date Input */
    input[type="date"].form-control {
        font-size: 0.875rem;
    }
    
    /* Form Text Helper */
    .form-text {
        font-size: 0.8125rem; /* 13px */
        margin-top: 0.375rem; /* 6px */
    }
    
    /* Invalid Feedback */
    .invalid-feedback {
        font-size: 0.8125rem;
        margin-top: 0.375rem;
    }
    
    /* Social Media Inputs */
    .social-inputs-group {
        gap: 0.75rem; /* 12px */
    }
    
    .social-input-row {
        padding: 0.75rem; /* 12px */
        margin-bottom: 0.75rem;
        border-radius: 0.5rem; /* 8px */
    }
    
    .social-input-row .form-row {
        gap: 0.75rem !important;
    }
    
    /* Social Media Button Adjustments */
    .btn-remove-social {
        width: 36px;
        height: 36px;
        padding: 0.5rem; /* 8px */
        font-size: 0.875rem;
    }
    
    .btn-add-social,
    #addSocialBtn {
        font-size: 0.875rem; /* 14px */
        padding: 0.75rem 1rem; /* 12px 16px */
        width: 100%;
        justify-content: center;
    }
    
    /* Alert Messages */
    .alert {
        padding: 0.875rem 1rem; /* 14px 16px */
        font-size: 0.875rem;
        margin-bottom: 1.25rem; /* 20px */
        border-radius: 0.75rem; /* 12px */
    }
    
    .alert i {
        font-size: 1rem;
    }
    
    .alert ul {
        margin: 0.5rem 0 0 1rem; /* 8px 0 0 16px */
        font-size: 0.8125rem;
    }
    
    /* Buttons - Override existing .btn */
    .register-container .btn,
    .form-area .btn {
        padding: 0.875rem 1.5rem; /* 14px 24px */
        font-size: 0.9375rem; /* 15px */
    }
    
    .register-container .btn-lg,
    .form-area .btn-lg {
        padding: 1rem 1.75rem; /* 16px 28px */
        font-size: 1rem;
    }
    
    .register-container .btn-md,
    .form-area .btn-md {
        padding: 0.75rem 1.25rem; /* 12px 20px */
        font-size: 0.875rem;
    }
    
    .register-container .btn i,
    .form-area .btn i {
        font-size: 0.875rem;
    }
    
    /* Form Footer */
    .form-footer {
        padding-top: 1rem;
    }
    
    .login-link {
        margin-top: 1.25rem; /* 20px */
        font-size: 0.875rem;
    }
    
    /* Logo Section */
    .logo-section {
        margin-bottom: 1.5rem; /* 24px */
    }
    
    .logo-section img {
        height: 44px;
    }
}

/* ========================================
   MOBILE: 360px and below (Samsung S8+)
   ======================================== */
@media (max-width: 360px) {
    /* Tighter spacing */
    .register-wrapper {
        padding: 0.625rem; /* 10px */
    }
    
    .form-area {
        padding: 1rem; /* 16px */
    }
    
    .register-header {
        padding: 1rem 0.875rem; /* 16px 14px */
    }
    
    /* Smaller typography */
    .register-header h1 {
        font-size: 1.375rem; /* 22px */
    }
    
    .register-header p {
        font-size: 0.875rem; /* 14px */
    }
    
    .form-area h1 {
        font-size: 1.5rem; /* 24px */
        margin-bottom: 1.5rem;
    }
    
    .section-label {
        font-size: 1rem; /* 16px */
        margin-bottom: 1rem;
    }
    
    /* Tighter spacing */
    .form-row {
        gap: 0.875rem !important; /* 14px */
        margin-bottom: 0.875rem !important;
    }
    
    .form-section-register {
        margin-bottom: 1.75rem; /* 28px */
        padding-bottom: 1.25rem; /* 20px */
    }
    
    /* Compact inputs */
    .input-group {
        border-width: 1px;
        border-radius: 0.625rem; /* 10px */
    }
    
    .input-group-text {
        padding: 0 0.625rem; /* 0 10px */
    }
    
    .form-control {
        padding: 0.625rem; /* 10px */
        font-size: 0.875rem !important; /* 14px */
    }
    
    .form-control::placeholder {
        font-size: 0.8125rem; /* 13px */
    }
    
    /* Smaller icons */
    .input-group-text i {
        font-size: 0.9375rem; /* 15px */
    }
    
    .icon-badge {
        width: 52px;
        height: 52px;
        font-size: 1.25rem; /* 20px */
        border-radius: 0.625rem; /* 10px */
    }
    
    /* Social inputs compact */
    .social-input-row {
        padding: 0.625rem; /* 10px */
    }
    
    .btn-remove-social {
        width: 32px;
        height: 32px;
        font-size: 0.875rem;
    }
    
    /* Compact buttons */
    .register-container .btn,
    .form-area .btn {
        padding: 0.75rem 1.25rem; /* 12px 20px */
        font-size: 0.875rem; /* 14px */
        border-radius: 0.625rem; /* 10px */
    }
    
    .register-container .btn-lg,
    .form-area .btn-lg {
        padding: 0.875rem 1.5rem; /* 14px 24px */
        font-size: 0.9375rem; /* 15px */
    }
    
    /* Logo */
    .logo-section img {
        height: 40px;
    }
}

/* ========================================
   MOBILE: 320px (Very small screens)
   ======================================== */
@media (max-width: 320px) {
    .register-container {
        border-radius: 0.75rem; /* 12px */
    }
    
    .form-area h1 {
        font-size: 1.375rem; /* 22px */
    }
    
    .section-label {
        font-size: 0.9375rem; /* 15px */
    }
    
    .form-control {
        font-size: 0.8125rem !important; /* 13px */
        padding: 0.5rem; /* 8px */
    }
    
    .input-group-text {
        padding: 0 0.5rem; /* 0 8px */
    }
}

/* ========================================
   IMPORTANT: Box Sizing & Overflow Fix
   ======================================== */
@media (max-width: 400px) {
    /* Ensure all elements fit within viewport */
    .register-wrapper *,
    .register-container *,
    .form-area *,
    .form-section-register *,
    .form-row *,
    .form-group-register *,
    .input-group *,
    .form-control {
        box-sizing: border-box;
        max-width: 100%;
    }
    
    /* Prevent text overflow */
    .form-label,
    .form-text,
    .invalid-feedback,
    .section-label {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
}