/* Admin Login Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, #e0eafc 0%, #cfdef3 100%);
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Background Animation */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.floating-shapes {
    position: relative;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(58, 141, 222, 0.1);
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 120px;
    height: 120px;
    top: 60%;
    right: 15%;
    animation-delay: 1s;
}

.shape-3 {
    width: 60px;
    height: 60px;
    top: 80%;
    left: 20%;
    animation-delay: 2s;
}

.shape-4 {
    width: 100px;
    height: 100px;
    top: 10%;
    right: 30%;
    animation-delay: 3s;
}

.shape-5 {
    width: 40px;
    height: 40px;
    top: 40%;
    left: 60%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.7;
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
        opacity: 1;
    }
}

#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(10px);
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3a8dde;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.login-card {
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    border-left: 6px solid #3a8dde !important;
    box-shadow: 
        0 8px 32px 0 rgba(58, 141, 222, 0.15),
        0 2px 8px 0 rgba(58, 141, 222, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.6) !important;
    animation: slideUp 0.8s ease-out;
    position: relative;
    overflow: hidden;
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(58, 141, 222, 0.05) 0%, rgba(45, 109, 163, 0.05) 100%);
    pointer-events: none;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Logo Section */
.logo-section {
    text-align: center;
}

.logo-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    background: linear-gradient(135deg, rgba(58, 141, 222, 0.1) 0%, rgba(45, 109, 163, 0.1) 100%);
    border-radius: 50%;
    padding: 14px;
    box-shadow: 0 4px 15px rgba(58, 141, 222, 0.2);
    animation: logoFloat 3s ease-in-out infinite;
}

.logo-icon img {
    width: 64px !important;
    height: 64px !important;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

.logo-section h1 {
    color: #232946;
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.subtitle {
    color: #6c757d;
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.8;
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.input-wrapper:hover {
    transform: translateY(-1px);
}

.input-icon {
    position: absolute;
    left: 12px;
    color: #6c757d;
    z-index: 2;
    transition: all 0.3s ease;
}

.input-wrapper input {
    width: 100%;
    padding: 15px 12px 15px 45px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.input-wrapper input:focus {
    outline: none;
    border-color: #3a8dde;
    box-shadow: 0 0 0 4px rgba(58, 141, 222, 0.1), 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.input-wrapper input:focus + .input-icon {
    color: #3a8dde;
    transform: scale(1.1);
}

.toggle-password {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    padding: 8px;
    z-index: 2;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.toggle-password:hover {
    background: rgba(58, 141, 222, 0.1);
    color: #3a8dde;
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #3a8dde 0%, #2d6da3 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(58, 141, 222, 0.3);
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(58, 141, 222, 0.4);
    background: linear-gradient(135deg, #2d6da3 0%, #1e4a7a 100%);
}

.submit-btn:active {
    transform: translateY(-1px);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-text {
    transition: opacity 0.3s ease;
    position: relative;
    z-index: 1;
}

.submit-btn.loading .btn-text {
    opacity: 0;
}

.submit-btn .loading-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
    z-index: 1;
}

.submit-btn.loading .loading-spinner {
    display: block;
}

.register-link-container {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e9ecef;
    position: relative;
}

.register-link-container::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #3a8dde, transparent);
}

.register-link-container p {
    margin: 0 0 0.8rem 0;
    color: #6c757d;
    font-size: 14px;
    font-weight: 500;
}

.register-link {
    color: #3a8dde;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
    background: rgba(58, 141, 222, 0.1);
    border: 1px solid transparent;
}

.register-link:hover {
    background: rgba(58, 141, 222, 0.2);
    border-color: rgba(58, 141, 222, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(58, 141, 222, 0.2);
}

.error-message {
    display: none;
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    padding: 15px;
    border-radius: 12px;
    margin-top: 1rem;
    font-size: 14px;
    text-align: center;
    border: 1px solid #f5c6cb;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.1);
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.bg-svg-shape {
    position: absolute;
    bottom: -160px;
    right: -210px;
    opacity: 0.08;
    z-index: -1;
    fill: #3a8dde;
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.08; }
    50% { transform: scale(1.05); opacity: 0.12; }
}

/* Back Button Enhancement */
.btn-link {
    color: #6c757d !important;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 8px;
    padding: 8px 12px !important;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-link:hover {
    color: #3a8dde !important;
    background: rgba(58, 141, 222, 0.1);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(58, 141, 222, 0.2);
}

/* Tombol kembali di luar card */
.back-btn-global {
    position: absolute;
    top: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    min-width: 120px;
    max-width: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(58, 141, 222, 0.08);
}

.container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.login-card {
    max-width: 400px;
    width: 100%;
    padding: 2.5rem 2rem 2rem 2rem !important;
    margin-top: 60px;
    margin-bottom: 24px;
    border-radius: 22px !important;
}

.logo-section {
    margin-top: 0.5rem;
    margin-bottom: 1.2rem;
}

.form-login-admin {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
}

.form-login-admin .form-group {
    width: 100%;
    margin-bottom: 0;
}

.input-wrapper input {
    width: 100%;
    min-width: 0;
    max-width: 100%;
}

.submit-btn {
    width: 100%;
    margin-top: 0.5rem;
    font-size: 1.08rem;
    border-radius: 10px;
}

/* Register link di dalam card */
.register-link-container-inside {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.2rem;
    border-top: 1px solid #e9ecef;
    background: none;
}
.register-link-container-inside p {
    color: #6c757d;
    font-size: 15px;
    margin-bottom: 0.5rem;
}
.register-link-container-inside .register-link {
    color: #3a8dde;
    background: rgba(58, 141, 222, 0.08);
    border-radius: 20px;
    padding: 8px 20px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.2s;
    display: inline-block;
}
.register-link-container-inside .register-link:hover {
    background: rgba(58, 141, 222, 0.18);
    color: #2d6da3;
    box-shadow: 0 2px 8px rgba(58, 141, 222, 0.08);
}

@media (max-width: 600px) {
    .login-card, .register-link-container-global {
        max-width: 98vw;
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }
    .back-btn-global {
        left: 16px;
        top: 16px;
        transform: none;
    }
}

/* Responsive */
@media (max-width: 480px) {
    .login-card {
        margin: 1rem;
        padding: 1.5rem !important;
    }
    
    .bg-svg-shape {
        display: none;
    }
    
    .input-wrapper input {
        padding: 12px 12px 12px 40px;
    }
    
    .submit-btn {
        padding: 12px;
    }
} 