/* Reset dan dasar */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
    font-family: 'Poppins', sans-serif;
    background: url('../img/bg.png') no-repeat center center fixed;
    background-size: cover;
    color: #333;
    display: flex;
    flex-direction: column;
}

/* Main content area */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px 0;
}

/* Background shapes */
.login-background {
    position: fixed;
    top: 0; 
    left: 0; 
    right: 0; 
    bottom: 0;
    z-index: -1;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: #a6dcef;
    opacity: 0.3;
}

.shape-1 {
    width: 400px;
    height: 400px;
    top: -100px;
    left: -100px;
}

.shape-2 {
    width: 300px;
    height: 300px;
    bottom: -80px;
    right: -80px;
}

/* Kontainer login */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    min-height: calc(100vh - 100px); /* Sesuaikan dengan tinggi footer */
}

/* Box login */
.login-box {
    background: rgba(255, 255, 255, 0.95);
    padding: 2.5rem 3rem;
    border-radius: 12px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    text-align: center;
    margin: 20px 0;
}

/* Logo */
.logo-small {
    max-width: 70px;
    height: auto;
    margin: 0 auto 1rem;
    display: block;
}

/* Judul dan subtitle */
h2 {
    color: #0077cc;
    margin-bottom: 0.25rem;
    font-weight: 700;
    font-size: 1.8rem;
}

.subtitle {
    color: #555;
    font-size: 14px;
    margin-bottom: 1.8rem;
    line-height: 1.4;
}

/* Error message */
.error-message {
    background-color: #ffe1e1;
    color: #d8000c;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    font-weight: 600;
    font-size: 14px;
}

/* Form */
.login-form {
    text-align: left;
}

/* Input group */
.input-group {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1.5px solid #ccc;
    border-radius: 8px;
    margin-bottom: 1.25rem;
    padding: 0.6rem 1rem;
    transition: border-color 0.3s;
}

.input-group:focus-within {
    border-color: #0077cc;
}

.input-icon {
    color: #888;
    margin-right: 12px;
    font-size: 1.2rem;
    min-width: 22px;
    text-align: center;
}

.input-group input {
    border: none;
    outline: none;
    flex: 1;
    font-size: 1rem;
    background: transparent;
    color: #222;
}

/* Tombol toggle password */
.password-toggle {
    background: transparent;
    border: none;
    color: #888;
    cursor: pointer;
    font-size: 1.1rem;
    margin-left: 10px;
    padding: 0;
    display: flex;
    align-items: center;
}

/* Tombol Login */
.login-button {
    width: 100%;
    padding: 12px;
    background-color: #0077cc;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: background-color 0.3s ease;
}

.login-button:hover {
    background-color: #005ea3;
}

/* Footer */
.main-footer {
    background-color: rgba(255, 255, 255, 0.95);
    text-align: center;
    padding: 1rem 1.5rem;
    font-size: 13px;
    color: #333;
    line-height: 1.5;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.1);
    width: 100%;
    flex-shrink: 0;
}

/* Footer konten */
.footer-content {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

/* Footer text */
.footer-text {
    flex: 1 1 300px;
    font-weight: 500;
}

/* Social icons footer */
.social-icons {
    flex: 0 0 auto;
}

.social-icons a {
    margin: 0 8px;
    text-decoration: none;
    color: #0077cc;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: #005ea3;
}

/* Responsive */
@media (max-width: 768px) {
    .login-container {
        padding: 1rem;
    }
    
    .login-box {
        padding: 2rem;
    }
    
    .shape-1 {
        width: 300px;
        height: 300px;
    }
    
    .shape-2 {
        width: 200px;
        height: 200px;
    }
}

@media (max-width: 480px) {
    .login-box {
        padding: 1.5rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .footer-text {
        text-align: center;
    }
}