/* Reset dan gaya dasar */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: #7A288A;
    min-height: 100vh;
    height: 100%;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    color: #fff;
    overflow: hidden;
    position: fixed;
    width: 100%;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

/* Fullscreen Login */
.fullscreen-login {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    min-height: 100vh;
    height: 100%;
    width: 100%;
    overflow-x: hidden;
    max-width: 100%;
    background: #7A288A;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

/* Removed illustration styles */
/* Fullscreen Content */
.fullscreen-content {
    flex: 0 1 auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    margin: 0;
    width: 90%;
    background: #7A288A;
    border-radius: 15px;
    position: relative;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

/* Glassmorphism Elements */
.fullscreen-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="%23ffffff10"/></svg>') 0 0/100px 100px, 
                url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="150" height="150" viewBox="0 0 150 150"><circle cx="75" cy="75" r="60" fill="%23ffffff08"/></svg>') 50px 50px/150px 150px;
    opacity: 0.5;
    z-index: 0;
}

.fullscreen-content > * {
    position: relative;
    z-index: 1;
}

/* User Icon Circle */
.user-icon-circle {
    width: 60px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.user-icon-circle i {
    font-size: 40px;
    color: white;
}

/* Login Title */
.login-title {
    text-align: center;
    margin-bottom: 10px;
}

.login-title h1 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 0;
}

.login-title p {
    opacity: 0.8;
    font-size: 12px;
    margin-top: 2px;
}

/* App Logo */
.app-logo {
    text-align: center;
    margin-bottom: 20px;
}

.logo {
    height: 60px;
    width: auto;
}

/* Welcome Text */
.welcome-text {
    text-align: center;
    margin-bottom: 30px;
}

.welcome-text h1 {
    font-size: 28px;
    color: #5b247a;
    margin-bottom: 8px;
    font-weight: 700;
}

.welcome-text p {
    font-size: 16px;
    color: #666;
    margin-top: 0;
}

/* Form Group */
.form-group {
    width: 100%;
    margin-bottom: 10px;
    position: relative;
}

/* Input Label */
.input-label {
    display: block;
    margin-bottom: 4px;
    font-size: 12px;
    font-weight: 500;
}

/* Input Wrapper */
.input-wrapper {
    position: relative;
    width: 100%;
}

.input-wrapper input {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 10px 12px;
    color: white;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    -webkit-appearance: none;
    appearance: none;
}

.input-wrapper input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.input-wrapper input:focus {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Password Toggle */
.password-toggle {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    cursor: pointer;
}

/* Form Fields */
.form-fields {
    margin-bottom: 25px;
    flex-grow: 1;
}

.form-field {
    margin-bottom: 15px;
}

.input-icon-wrapper {
    display: flex;
    align-items: center;
    border: none;
    border-radius: 12px;
    background-color: #f0f0f0;
    overflow: hidden;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.05), 0 1px 2px rgba(255,255,255,0.2);
    margin-bottom: 15px;
    position: relative;
    transition: all 0.3s ease;
}

.input-icon-wrapper:focus-within {
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.05), 0 0 0 2px rgba(91, 36, 122, 0.3);
    background-color: #fff;
    border-left: 3px solid #5b247a;
}

.input-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #5b247a;
    font-size: 20px;
    background: linear-gradient(135deg, rgba(91, 36, 122, 0.1) 0%, rgba(27, 206, 223, 0.1) 100%);
    border-right: 1px solid rgba(0,0,0,0.05);
}

.phone-icon::before {
    content: '📱';
}

.password-icon::before {
    content: '🔒';
}

.otp-icon::before {
    content: '🔑';
}

.input-icon-wrapper input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 15px 15px;
    font-size: 15px;
    color: #333;
    outline: none;
    height: 50px;
}

.input-icon-wrapper input::placeholder {
    color: #aaa;
    font-style: italic;
    font-size: 13px;
}

/* Phone Input Container */
.phone-input-container {
    display: flex;
    flex: 1;
}

.country-code {
    padding: 0 10px;
    display: flex;
    align-items: center;
    color: #5b247a;
    font-weight: 600;
    background: transparent;
    border: none;
}

/* OTP Container */
.otp-container {
    display: flex;
}

.btn-otp {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0 8px;
    border-radius: 0 8px 8px 0;
    font-size: 11px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.btn-otp:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding: 0 5px;
}

.remember-me {
    display: flex;
    align-items: center;
    font-size: 13px;
    color: #666;
    position: relative;
    cursor: pointer;
}

.remember-me input {
    margin-right: 8px;
    accent-color: #5b247a;
}

.forgot-password a {
    color: #5b247a;
    text-decoration: none;
    font-size: 13px;
}

/* Form Action */
.form-action {
    margin-top: 30px;
}

.form-field input {
    width: 100%;
    padding: 12px 15px 12px 40px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    color: #333;
    background-color: #f7f7f7;
}

/* Login Button */
.btn-login {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    padding: 10px 12px;
    border-radius: 8px;
    font-weight: 600;
    width: 100%;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 14px;
    margin-top: 5px;
    margin-bottom: 5px;
    text-align: center;
    display: block;
    text-decoration: none;
    box-shadow: 0 4px 8px -2px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-appearance: none;
    appearance: none;
}

.btn-login:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 15px 20px -3px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Forgot Password */
.forgot-password-container {
    text-align: center;
    margin-bottom: 30px;
}

.forgot-password {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.forgot-password:hover {
    color: white;
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    width: 100%;
    margin: 20px 0;
}

.divider-line {
    flex-grow: 1;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.3);
}

.divider-text {
    padding: 0 15px;
    color: white;
    font-size: 14px;
}

/* Social Media Buttons */
.social-buttons {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-top: 20px;
}

.social-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    font-size: 10px;
    font-weight: 600;
    text-align: center;
    line-height: 1.2;
}

.social-blue {
    background-color: #1877f2; /* Facebook blue */
}

.social-red {
    background-color: #ff4500; /* Reddit orange-red */
}

/* Register Link */
.register-link {
    text-align: center;
    margin-top: 25px;
    font-size: 13px;
    color: #666;
}

.register-link a {
    color: #5b247a;
    text-decoration: none;
    font-weight: 600;
}

/* Alert messages */
.alert {
    padding: 12px 16px;
    margin-bottom: 20px;
    border-radius: 10px;
    font-size: 14px;
    width: 100%;
}

.alert-success {
    background-color: rgba(0, 200, 83, 0.2);
    color: #00c853;
    border: 1px solid rgba(0, 200, 83, 0.3);
}

.alert-danger {
    background-color: rgba(255, 23, 68, 0.2);
    color: #ff1744;
    border: 1px solid rgba(255, 23, 68, 0.3);
}

/* Simple Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.loading-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Loading Spinner */
.loading-spinner {
    width: 60px;
    height: 60px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #8a2be2;
    border-left-color: #ff1493;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
    box-shadow: 0 0 15px rgba(138, 43, 226, 0.3);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    color: white;
    font-size: 16px;
    font-weight: 500;
    margin-top: 10px;
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(138, 43, 226, 0.7);
    animation: fadeInOut 1.5s ease-in-out infinite;
}

@keyframes fadeInOut {
    0% { opacity: 0.5; }
    50% { opacity: 1; }
    100% { opacity: 0.5; }
}

.alert ul {
margin: 5px 0 0 20px;
}

/* Error Message */
.error-message {
color: #ffeb3b; /* Yellow to match labels */
font-size: 12px;
margin-top: 5px;
display: block;
text-align: left;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Loading overlay styles */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 0 10px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.8s linear infinite;
}

.loading-text {
    color: white;
    margin-top: 8px;
    font-size: 12px;
}

.loading-text {
    color: white;
    font-size: 12px;
    margin-top: 8px;
}

.hidden {
    display: none !important;
}

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
    .fullscreen-content {
        padding: 15px 10px;
    }
    
    .user-icon-circle {
        width: 70px;
        height: 70px;
        margin-bottom: 10px;
    }
    
    .user-icon-circle i {
        font-size: 30px;
    }
    
    .login-title h1 {
        font-size: 22px;
    }
    
    .login-title p {
        font-size: 12px;
    }
    
    .form-group {
        margin-bottom: 8px;
    }
    
    .input-wrapper input {
        padding: 8px 10px;
        font-size: 13px;
    }
    
    .btn-login {
        padding: 10px;
        font-size: 13px;
        margin-top: 8px;
        margin-bottom: 8px;
    }
}



.alert {
    padding: 8px 10px;
    margin-bottom: 10px;
    border: 1px solid transparent;
    border-radius: 6px;
    font-size: 12px;
    text-align: left;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.alert-danger {
    color: #ff6b6b;
    background-color: rgba(255, 107, 107, 0.1);
    border-left: 4px solid #ff6b6b;
}

.alert-success {
    color: #28a745;
    background-color: rgba(40, 167, 69, 0.1);
    border-left: 4px solid #28a745;
}

.otp-container input {
    flex-grow: 1;
}

@media (max-width: 480px) {
    .fullscreen-login {
        justify-content: flex-start;
        padding: 0;
    }
    
    .fullscreen-content {
        padding: 20px;
        width: 100%;
        max-width: 100%;
        height: 100vh;
        border-radius: 0;
        box-shadow: none;
        margin: 0;
    }
    
    .user-icon-circle {
        width: 60px;
        height: 60px;
        margin-bottom: 15px;
    }
    
    .user-icon-circle i {
        font-size: 28px;
    }
    
    .login-title h1 {
        font-size: 18px;
        margin-bottom: 5px;
    }
    
    .login-title p {
        font-size: 12px;
        margin-bottom: 15px;
    }
    
    .form-group {
        margin-bottom: 12px;
        width: 100%;
    }
    
    .input-wrapper input {
        padding: 10px 12px;
        font-size: 14px;
        width: 100%;
    }
    
    .btn-login {
        padding: 10px;
        font-size: 14px;
        margin-top: 10px;
        margin-bottom: 10px;
        width: 100%;
    }
    
    .loading-spinner {
        width: 30px;
        height: 30px;
        border-width: 2px;
    }
    
    .loading-text {
        font-size: 11px;
        margin-top: 6px;
    }
}

.alert {
    padding: 8px 10px;
    margin-bottom: 10px;
    border: 1px solid transparent;
    border-radius: 6px;
    font-size: 12px;
    text-align: left;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.alert-danger {
    color: #ff6b6b;
    background-color: rgba(255, 107, 107, 0.1);
    border-left: 4px solid #ff6b6b;
}

.alert-success {
    color: #28a745;
    background-color: rgba(40, 167, 69, 0.1);
    border-left: 4px solid #28a745;
}

.text-center {
text-align: center;
}

.mt-3 {
    margin-top: 15px;
}

.hidden {
    display: none;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.logo-container {
    text-align: center;
    margin-bottom: 25px;
    animation: fadeIn 0.8s ease-out;
    position: relative;
}

.logo-container::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(147, 112, 219, 0.5), transparent);
}

.logo {
    max-width: 120px;
    height: auto;
    display: inline-block;
    filter: drop-shadow(0 5px 15px rgba(147, 112, 219, 0.3));
    transition: all 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

/* OTP Button */
.btn-otp {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 10px 15px;
    font-size: 12px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

#send-otp::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: all 0.6s ease;
    z-index: -1;
}

#send-otp:hover::before {
    left: 100%;
}

#send-otp:hover {
    background: linear-gradient(135deg, #8a2be2, #4b0082);
    box-shadow: 0 6px 12px rgba(0,0,0,0.4);
}

#send-otp:active {
    transform: scale(0.98);
}

.captcha-code {
    flex-grow: 1;
    background-color: #4169E1;
    color: white;
    padding: 12px 8px;
    text-align: center;
    font-weight: bold;
    letter-spacing: 2px;
    border-radius: 4px;
    min-width: 120px;
}

.refresh-button {
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    padding: 0 15px;
    cursor: pointer;
    border-radius: 4px;
    font-size: 16px;
}

/* Phone input styling */
.phone-input-container {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.country-code {
    background-color: rgba(30, 30, 30, 0.8);
    color: #b19cd9;
    padding: 14px 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-right: none;
    border-radius: 12px 0 0 12px;
    font-weight: 600;
}

.phone-input {
    flex-grow: 1;
    border-left: none !important;
    border-radius: 0 12px 12px 0 !important;
}

/* Remember me and forgot password */
.remember-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.inline-label {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

.inline-label input[type="checkbox"] {
    margin-right: 8px;
    accent-color: #9370db;
    width: 16px;
    height: 16px;
}

.forgot-password {
    text-align: right;
}

.forgot-password a {
    color: #b19cd9;
    text-decoration: none;
    transition: all 0.3s ease;
}

.forgot-password a:hover {
    color: #9370db;
    text-decoration: underline;
}

/* OTP container */
.otp-container {
    display: flex;
    gap: 10px;
    align-items: center;
}

.otp-container input {
    flex-grow: 1;
}

/* Register link */
.register-link {
    text-align: center;
    margin-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
}

.register-link a {
    color: #9370db;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.register-link a:hover {
    color: #b19cd9;
    text-decoration: underline;
}

/* Error message */
.error-message {
    color: #ff6b6b;
    font-size: 12px;
    margin-top: 5px;
    font-weight: 500;
}

/* Media Queries untuk responsif */
@media (max-width: 480px) {
    .container {
        width: 94%;
        padding: 25px 20px;
        margin: 10px auto;
    }
    
    h1 {
        font-size: 22px;
        margin-bottom: 20px;
    }
    
    input[type="text"],
    input[type="password"],
    .btn {
        padding: 14px 12px;
    }
    
    .form-group {
        margin-bottom: 18px;
    }
    
    #send-otp {
        padding: 14px 12px;
        font-size: 13px;
    }
}

/* Perbaikan untuk layar sentuh */
@media (hover: none) {
    .btn, .refresh-button {
        -webkit-tap-highlight-color: transparent;
    }
    
    input[type="text"],
    input[type="password"] {
        -webkit-appearance: none;
        appearance: none;
    }
}
