/* Auth Styles */
.auth-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.08) 100%);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 40px;
    max-width: 500px;
    width: 100%;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
}

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

.auth-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 8px;
}

.auth-subtitle {
    font-size: 16px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.auth-form {
    margin-bottom: 24px;
}

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

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--white);
    margin-bottom: 8px;
    text-align: left;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.06) 100%);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--white);
    font-size: 16px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.form-control:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.2);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.06) 100%);
    color: var(--white);
}

.form-check {
    display: flex;
    align-items: center;
    margin-bottom: 24px;
    text-align: left;
}

.form-check-input {
    margin-right: 8px;
    margin-top: 0;
}

.form-check-label {
    font-size: 14px;
    color: var(--white);
    cursor: pointer;
}

.btn-auth {
    width: 100%;
    padding: 12px;
    background: linear-gradient(90deg, #003fff 0%, #4a90e2 100%);
    border: none;
    border-radius: 8px;
    color: var(--white);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-auth:hover {
    background: linear-gradient(90deg, #0056ff 0%, #5ba3ff 100%);
    transform: translateY(-1px);
}

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

.btn-link-auth {
    color: #4a90e2;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.btn-link-auth:hover {
    color: #5ba3ff;
    text-decoration: underline;
}

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

.auth-footer-text {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.auth-footer-link {
    color: #4a90e2;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.auth-footer-link:hover {
    color: #5ba3ff;
    text-decoration: underline;
}

.auth-error {
    color: #ff6b6b;
    font-size: 12px;
    margin-top: 4px;
    text-align: left;
}

.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid;
}

.alert-success {
    background: rgba(40, 167, 69, 0.1);
    border-color: rgba(40, 167, 69, 0.3);
    color: #d4edda;
}

.auth-description {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 24px;
    text-align: center;
    line-height: 1.5;
}

/* Background untuk halaman auth */
.hero-section-home {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 0;
}

/* Responsive */
@media (max-width: 576px) {
    .auth-card {
        padding: 30px 20px;
        margin: 20px;
        max-width: calc(100% - 40px);
    }

    .auth-title {
        font-size: 28px;
    }

    .hero-section-home {
        padding: 80px 0;
    }
}

.form-control:-webkit-autofill,
.form-control:-webkit-autofill:focus,
.form-control:-webkit-autofill:hover,
.form-control:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px rgba(255,255,255,0.08) inset !important;
    box-shadow: 0 0 0 1000px rgba(255,255,255,0.08) inset !important;
    -webkit-text-fill-color: var(--white) !important;
    color: var(--white) !important;
    transition: background-color 5000s ease-in-out 0s;
    caret-color: var(--white);
}

/* Phone Input Styling */
.iti {
    width: 100%;
    position: relative;
}

.iti__flag-container {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.06) 100%);
    border: 1px solid var(--border-color);
    border-radius: 8px 0 0 8px;
    border-right: none;
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    z-index: 1;
    display: flex;
    align-items: center;
    pointer-events: auto;
}

.iti__selected-flag {
    padding: 12px 16px;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    gap: 8px;
    height: 100%;
    cursor: pointer;
}

.iti__flag {
    margin-right: 0;
}

.iti__arrow {
    border-top-color: rgba(255, 255, 255, 0.6);
    margin-left: 4px;
}

.iti--allow-dropdown input[type="tel"] {
    padding-left: 130px !important;
    border-radius: 8px !important;
    border: 1px solid var(--border-color) !important;
    width: 100% !important;
    position: relative;
    z-index: 0;
}

.iti--allow-dropdown input[type="tel"]:focus {
    border-color: #4a90e2 !important;
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.2) !important;
}

.iti--allow-dropdown .iti__flag-container:focus-within {
    border-color: #4a90e2 !important;
}

/* Country dropdown styling */
.iti__country-list {
    background: #1a1a2e !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 8px !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3) !important;
    z-index: 9999 !important;
    position: absolute !important;
    top: 100% !important;
    max-height: 300px;
    width: 350px;
    margin-top: 4px !important;
}

.iti__country {
    color: var(--white) !important;
    background: transparent !important;
    padding: 8px 16px;
    border: none !important;
}

.iti__country:hover,
.iti__country.iti__highlight {
    background: rgba(74, 144, 226, 0.2) !important;
    color: var(--white) !important;
}

.iti__country-name {
    color: rgba(255, 255, 255, 0.9) !important;
}

.iti__dial-code {
    color: rgba(255, 255, 255, 0.6) !important;
}

/* Google OAuth Button Styling */
.auth-divider {
    position: relative;
    margin: 20px 0;
}

.auth-divider-line {
    height: 1px;
    background: rgba(255,255,255,0.1);
    width: 100%;
}

.auth-divider-text {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-primary, #0f0f23);
    padding: 0 15px;
    color: rgba(255,255,255,0.6);
    font-size: 14px;
}

.btn-google {
    background: #fff;
    color: #333;
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    width: 100%;
    font-size: 16px;
    font-weight: 500;
}

.btn-google:hover {
    background: #f8f9fa;
    color: #333;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

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