/* Reset dan Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    background: linear-gradient(135deg, #059669 0%, #10b981 50%, #34d399 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
}

/* Container */
.auth-container {
    width: 100%;
    max-width: 440px;
    position: relative;
    z-index: 2;
}

/* Card */
.auth-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 40px 36px;
    box-shadow: 0 20px 40px rgba(5, 150, 105, 0.12), 0 1px 3px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.08);
    animation: slideUp 0.6s ease-out;
    position: relative;
    overflow: hidden;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #059669, #10b981);
    border-radius: 20px 20px 0 0;
}

.register-card {
    max-width: 480px;
    padding: 36px 32px;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header */
.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    font-size: 26px;
    font-weight: 700;
    color: #059669;
    letter-spacing: -0.02em;
}

.logo i {
    margin-right: 10px;
    font-size: 28px;
    color: #10b981;
}

.auth-header h2 {
    color: #111827;
    font-size: 28px;
    margin-bottom: 8px;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.auth-header p {
    color: #6b7280;
    font-size: 15px;
    line-height: 1.5;
    font-weight: 400;
}

/* Login Type Selector */
.login-type-selector {
    display: flex;
    background: #f9fafb;
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 28px;
    border: 1px solid #e5e7eb;
}

.type-btn {
    flex: 1;
    padding: 12px 18px;
    background: transparent;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
}

.type-btn:hover {
    color: #059669;
    background: rgba(5, 150, 105, 0.04);
}

.type-btn.active {
    background: #059669;
    color: white;
    box-shadow: 0 2px 8px rgba(5, 150, 105, 0.2);
}

.type-btn i {
    font-size: 14px;
}

/* Form */
.auth-form {
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper i {
    position: absolute;
    left: 16px;
    color: #6b7280;
    font-size: 16px;
    z-index: 1;
    transition: color 0.2s ease;
}

.input-wrapper input,
.input-wrapper select {
    width: 100%;
    padding: 14px 16px 14px 48px;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    font-size: 15px;
    background: #fff;
    transition: all 0.2s ease;
    outline: none;
    color: #111827;
    font-weight: 400;
}

.input-wrapper input:focus,
.input-wrapper select:focus {
    border-color: #059669;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.08);
}

.input-wrapper input:focus + i,
.input-wrapper select:focus + i {
    color: #059669;
}

.input-wrapper select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
    padding-right: 44px;
}

.toggle-password {
    position: absolute;
    right: 16px;
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    font-size: 14px;
    padding: 6px;
    transition: color 0.2s ease;
    border-radius: 4px;
}

.toggle-password:hover {
    color: #059669;
}

/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

/* Checkbox */
.checkbox-wrapper {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: #374151;
    font-weight: 400;
}

.checkbox-wrapper input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 1.5px solid #d1d5db;
    border-radius: 4px;
    margin-right: 10px;
    position: relative;
    transition: all 0.2s ease;
    background: #fff;
}

.checkbox-wrapper input[type="checkbox"]:checked + .checkmark {
    background: #059669;
    border-color: #059669;
}

.checkbox-wrapper input[type="checkbox"]:checked + .checkmark::after {
    content: "";
    position: absolute;
    left: 4px;
    top: 1px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Links */
.forgot-link,
.terms-link {
    color: #059669;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s ease;
    position: relative;
}

.forgot-link:hover,
.terms-link:hover {
    color: #047857;
}

/* Button */
.auth-btn {
    width: 100%;
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    color: white;
    border: none;
    padding: 16px 24px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.25);
    position: relative;
    overflow: hidden;
}

.auth-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(5, 150, 105, 0.3);
}

.auth-btn:active {
    transform: translateY(0);
}

/* Footer */
.auth-footer {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.auth-footer p {
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 10px;
    font-weight: 400;
}

.auth-footer p:last-child {
    margin-bottom: 0;
}

.auth-footer a {
    color: #059669;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.auth-footer a:hover {
    color: #047857;
}

/* Admin Info */
.admin-info {
    color: #059669;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: rgba(5, 150, 105, 0.06);
    padding: 10px 14px;
    border-radius: 8px;
    margin-top: 10px;
    border: 1px solid rgba(5, 150, 105, 0.1);
    font-weight: 500;
}

.admin-info i {
    font-size: 12px;
}

/* Error Messages */
.error-message {
    color: #dc2626;
    font-size: 12px;
    margin-top: 6px;
    display: block;
    font-weight: 400;
    padding: 4px 8px;
    background: rgba(220, 38, 38, 0.04);
    border-radius: 6px;
    border-left: 2px solid #dc2626;
}

/* Background Decoration */
.bg-decoration {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.08);
    animation: float 12s ease-in-out infinite;
}

.circle-1 {
    width: 100px;
    height: 100px;
    top: 15%;
    left: 10%;
    animation-delay: 0s;
}

.circle-2 {
    width: 160px;
    height: 160px;
    top: 60%;
    right: 8%;
    animation-delay: 3s;
}

.circle-3 {
    width: 80px;
    height: 80px;
    bottom: 25%;
    left: 15%;
    animation-delay: 6s;
}

.circle-4 {
    width: 50px;
    height: 50px;
    top: 25%;
    right: 25%;
    animation-delay: 2s;
}

.circle-5 {
    width: 70px;
    height: 70px;
    bottom: 15%;
    right: 30%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
        opacity: 0.8;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .auth-container {
        max-width: 100%;
        padding: 0 16px;
    }

    .auth-card {
        padding: 32px 24px;
        border-radius: 16px;
    }

    .register-card {
        padding: 28px 20px;
    }

    .auth-header h2 {
        font-size: 24px;
    }

    .logo {
        font-size: 22px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .input-wrapper input,
    .input-wrapper select {
        padding: 12px 14px 12px 40px;
        font-size: 14px;
    }

    .input-wrapper i {
        left: 14px;
        font-size: 14px;
    }

    .auth-btn {
        padding: 14px 20px;
        font-size: 14px;
    }

    .type-btn {
        padding: 10px 14px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 12px;
    }

    .auth-card {
        padding: 24px 20px;
        border-radius: 14px;
    }

    .register-card {
        padding: 20px 16px;
    }

    .auth-header h2 {
        font-size: 22px;
    }

    .logo {
        font-size: 20px;
    }

    .input-wrapper input,
    .input-wrapper select {
        padding: 12px 12px 12px 36px;
        font-size: 14px;
    }

    .input-wrapper i {
        left: 12px;
        font-size: 14px;
    }

    .auth-btn {
        padding: 12px 16px;
        font-size: 14px;
    }

    .circle-1 { width: 60px; height: 60px; }
    .circle-2 { width: 100px; height: 100px; }
    .circle-3 { width: 50px; height: 50px; }
    .circle-4 { width: 30px; height: 30px; }
    .circle-5 { width: 40px; height: 40px; }
}