/* Base Styles */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
    --text-color: #333;
    --text-light: #7f8c8d;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    /* display: flex; */
    /* justify-content: center; */
    /* align-items: center; */
    padding: 0;
}

.login-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.login-container {
    background: white;
    border-radius: 15px;
    box-shadow: var(--shadow);
    overflow: hidden;
    width: 100%;
    max-width: 450px;
    padding: 30px;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 60px auto 0 auto;
}

/* Main Content */
main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
}

/* Login Container */
.login-container {
    background: white;
    border-radius: 15px;
    box-shadow: var(--shadow);
    overflow: hidden;
    width: 100%;
    max-width: 450px;
    padding: 30px;
    position: relative;
    z-index: 1;
}

.login-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 10px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    z-index: -1;
}

/* Login Header */
.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header .logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.login-header .logo img {
    width: 50px;
    height: 50px;
    margin-right: 15px;
    border-radius: 50%;
    object-fit: cover;
}

.login-header .logo h1 {
    font-size: 24px;
    color: var(--primary-color);
    font-weight: 700;
}

@media (max-width: 480px) {
    .login-header .logo {
        flex-direction: column;
        text-align: center;
    }
    .login-header .logo img {
        margin-right: 0;
        margin-bottom: 10px;
    }
}
.login-header p {
    color: var(--text-light);
    font-size: 14px;
}

/* Login Form */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;  /* Memastikan form menggunakan lebar penuh */
}

.input-group {
    position: relative;
    width: 100%;  /* Memastikan input group menggunakan lebar penuh */
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--primary-color);
    font-size: 14px;
}

.input-group label i {
    margin-right: 8px;
    color: var(--secondary-color);
}

.input-group input {
    width: 100%;
    padding: 15px;  /* Sedikit lebih tinggi */
    padding-right: 40px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;  /* Sedikit lebih besar */
    transition: var(--transition);
    box-sizing: border-box;
}

.input-group input:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 40px;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--text-light);
    transition: var(--transition);
}

.toggle-password:hover {
    color: var(--secondary-color);
}

/* Remember & Forgot */
.remember-forgot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.remember-me {
    display: flex;
    align-items: center;
}

.remember-me input {
    margin-right: 8px;
    cursor: pointer;
}

.forgot-password {
    color: var(--secondary-color);
    text-decoration: none;
    transition: var(--transition);
}

.forgot-password:hover {
    text-decoration: underline;
}

/* Login Button */
.login-btn {
    width: 100%;  /* Tombol menggunakan lebar penuh */
    padding: 15px;  /* Sedikit lebih tinggi */
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--transition);
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

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

/* Divider */
.divider {
    display: flex;
    align-items: center;
    color: var(--text-light);
    font-size: 14px;
    margin: 10px 0;
}

.divider::before,
.divider::after {
    content: "";
    flex: 1;
    border-bottom: 1px solid #ddd;
}

.divider::before {
    margin-right: 10px;
}

.divider::after {
    margin-left: 10px;
}

/* Social Login */
.social-login {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.google-btn {
    background: white;
    color: var(--text-color);
    border: 1px solid #ddd;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--transition);
}

.google-btn:hover {
    background: #f8f9fa;
    border-color: #ccc;
}

.google-btn i {
    color: #db4437;
    font-size: 18px;
}

/* Register Link */
.register-link {
    text-align: center;
    font-size: 14px;
    color: var(--text-light);
}

.register-link a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.register-link a:hover {
    text-decoration: underline;
}

/* Login Footer */
.login-footer {
    margin-top: 30px;
    text-align: center;
    font-size: 12px;
    color: var(--text-light);
}

.login-page .footer {
    width: 100%;
    background: #fff;
    color: #7f8c8d;
    text-align: center;
    padding: 18px 0 12px 0;
    font-size: 15px;
    box-shadow: 0 -2px 10px rgba(44, 62, 80, 0.04);
    margin-top: 0;
}
.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}
.footer-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--secondary-color);
}

/* Responsive Design */
@media (max-width: 480px) {
    .login-container {
        padding: 20px;
    }
    
    .logo {
        flex-direction: column;
        text-align: center;
    }
    
    .logo img {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .remember-forgot {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}