/* auth.css */
body {
    margin: 0; padding: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, #0ea5e9 100%);
    font-family: 'Poppins', sans-serif;
    position: relative;
    overflow: hidden;
}
.auth-card {
    background: #ffffff;
    width: 100%;
    max-width: 400px;
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    z-index: 10;
    position: relative;
}
.auth-card h2 {
    color: var(--primary-color);
    font-size: 2.2rem;
    margin-bottom: 5px;
    text-align: center;
}
.auth-card p.subtitle {
    text-align: center;
    color: #64748b;
    margin-bottom: 30px;
    font-size: 0.95rem;
}
.form-group {
    margin-bottom: 20px;
    position: relative;
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #334155;
    font-weight: 500;
    font-size: 0.9rem;
}
.form-group input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    color: #334155;
    transition: all 0.3s ease;
}
/* icon mata */
.form-group > i:not(.toggle-password) {
    position: absolute;
    bottom: 14px;
    left: 16px;
    color: #94a3b8;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}
.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.1);
}
.form-group input:focus + i, .form-group input:valid + i {
    color: var(--primary-color);
}
.btn-auth {
    width: 100%;
    padding: 14px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    box-shadow: 0 4px 10px rgba(2, 132, 199, 0.2);
}
.btn-auth:hover {
    background: var(--hover-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(2, 132, 199, 0.4);
}
.auth-link {
    text-align: center;
    margin-top: 25px;
    font-size: 0.95rem;
    color: #64748b;
}
.auth-link a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
}
.auth-link a:hover {
    color: var(--hover-color);
    text-decoration: underline;
}
.alert {
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    text-align: center;
    font-weight: 500;
}
.alert-error {
    background: #fee2e2;
    color: #ef4444;
    border: 1px solid #fecaca;
}
.alert-success {
    background: #d1fae5;
    color: #10b981;
    border: 1px solid #a7f3d0;
}
.back-home {
    position: absolute;
    top: 20px;
    left: 20px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    z-index: 20;
}
.back-home:hover {
    opacity: 0.8;
    transform: translateX(-5px);
}

/* icon mata */
.password-group .input-wrapper{
    position: relative;
}

.password-group input{
    width: 100%;
    padding-left: 45px;
    padding-right: 45px;
}

.lock-icon{
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
}

.toggle-password{
    position: absolute !important;
    right: 15px !important;
    left: auto !important;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    cursor: pointer;
    z-index: 999;
}