/* ==========================================
   SINERGI SYSTEM - GUEST PAGES STYLES
   Styles for public/guest pages and login
   ========================================== */

/* ==========================================
   LOGIN PAGE STYLES
   ========================================== */

.login-page {
    background: linear-gradient(135deg, #f6f6f7 0%, #ebe6f0 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px 20px 100px; /* Added bottom padding for fixed footer */
}

.login-container {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.login-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    margin-bottom: 20px;
    animation: cardEntrance 0.8s ease-out;
}

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

/* Login Header */
.login-header {
    background: linear-gradient(135deg, #2072eb 0%, #1860c9 100%);
    color: #ffffff;
    padding: 24px 24px 18px;
    text-align: center;
}

.welcome-title {
    font-size: 22px;
    font-weight: 600;
    margin: 0 0 6px 0;
    color: #ffffff;
}

.welcome-subtitle {
    font-size: 13px;
    margin: 0;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.4;
}

/* Login Form */
.login-form-section {
    padding: 24px;
    background: #ffffff;
}

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

.form-label {
    font-size: 14px;
    font-weight: 500;
    color: #333333;
    margin-bottom: 8px;
    display: block;
}

.login-input {
    width: 100%;
    padding: 10px 14px;
    font-size: 14px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background-color: #fffef0;
    transition: all 0.3s ease;
    color: #333333;
}

.login-input::placeholder {
    color: #999999;
}

.login-input:focus {
    outline: none;
    border-color: #2072eb;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(32, 114, 235, 0.1);
}

/* Password Toggle */
.password-input-wrapper {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #666666;
    cursor: pointer;
    padding: 5px;
    transition: color 0.2s ease;
}

.password-toggle:hover {
    color: #2072eb;
}

.password-toggle i {
    font-size: 18px;
}

/* Remember Me */
.remember-me {
    margin-bottom: 20px;
}

.form-check-input {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    cursor: pointer;
    accent-color: #2072eb;
}

.form-check-label {
    font-size: 14px;
    color: #333333;
    cursor: pointer;
    user-select: none;
}

/* Login Button */
.btn-login {
    width: 100%;
    padding: 10px;
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg, #2072eb 0%, #1860c9 100%);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(32, 114, 235, 0.3);
}

.btn-login:hover {
    background: linear-gradient(135deg, #1860c9 0%, #1254b5 100%);
    box-shadow: 0 4px 12px rgba(32, 114, 235, 0.4);
    transform: translateY(-1px);
}

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

/* Captcha Styling */
.captcha-group {
    margin-bottom: 20px;
}

.captcha-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    background: #f8fafc;
    padding: 12px 15px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.captcha-wrapper img.captcha {
    border-radius: 8px;
    height: 40px;
    width: auto;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.captcha-wrapper img.captcha:hover {
    transform: scale(1.05);
}

.captcha-wrapper input[type="text"] {
    flex: 1;
    min-width: 0;
    padding: 10px 12px;
    font-size: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: #ffffff;
    transition: all 0.3s ease;
    text-align: center;
    letter-spacing: 2px;
    font-weight: 600;
}

.captcha-wrapper:focus-within {
    border-color: #2072eb;
    box-shadow: 0 0 0 3px rgba(32, 114, 235, 0.1);
    background: #ffffff;
}

.captcha-wrapper input[type="text"]:focus {
    outline: none;
    border-color: #2072eb;
}

/* Login Footer */
.login-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    background: #ffffff;
    border-top: 1px solid #f1f5f9;
    box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.05);
    animation: footerEntrance 0.8s ease-out 0.2s both;
    z-index: 1000;
    display: flex;
    justify-content: center;
}

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

.footer-content {
    width: 100%;
    max-width: 1100px;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #64748b;
}

.footer-copyright {
    font-weight: 500;
}

.footer-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-icon-wrapper {
    width: 28px;
    height: 28px;
    background-color: #f1f5f9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-icon-wrapper:hover {
    background-color: #2072eb;
    transform: rotate(180deg);
}

.footer-icon-wrapper:hover .footer-icon {
    color: #ffffff;
}

.footer-icon {
    font-size: 12px;
    color: #64748b;
    transition: color 0.3s ease;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-link {
    color: #94a3b8;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
    padding: 4px 8px;
    border-radius: 6px;
}

.footer-link:hover {
    color: #2072eb;
    background-color: #f0f7ff;
    text-decoration: none;
}

.footer-separator {
    color: #e2e8f0;
    font-size: 10px;
}

/* ==========================================
   GUEST NAVBAR
   ========================================== */

.navbar-guest {
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* ==========================================
   RESPONSIVE
   ========================================== */

@media (max-width: 576px) {
    .login-container {
        max-width: 100%;
        padding: 0 15px;
    }
    
    .login-header {
        padding: 25px 20px 20px;
    }
    
    .welcome-title {
        font-size: 20px;
    }
    
    .welcome-subtitle {
        font-size: 13px;
    }
    
    .login-form-section {
        padding: 25px 20px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .footer-right {
        justify-content: center;
    }
}


/* SSO Login Styles */
.login-divider {
    text-align: center;
    position: relative;
    margin: 20px 0;
}

.login-divider:before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e0e0e0;
    z-index: 1;
}

.login-divider span {
    background: #ffffff;
    padding: 0 15px;
    position: relative;
    color: #999999;
    font-size: 14px;
    z-index: 2;
}

.btn-sso {
    width: 100%;
    padding: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #212529;
    background: #ffc107;
    border: 1px solid #ffc107;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-decoration: none;
    margin-top: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.btn-sso:hover {
    background: #ffca2c;
    color: #000000;
    border-color: #ffc720;
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
    transform: translateY(-2px);
}

.btn-sso i {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.btn-sso:hover i {
    transform: scale(1.1);
}
