/* Auth CSS - Zenith Parfume */

/* Sticky Footer - Footer selalu di bawah */
html, body {
    height: 100%;
    margin: 0;
}

body {
    display: flex;
    flex-direction: column;
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

footer {
    margin-top: auto;
}

/* Auth specific styles */
.page-login-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.form-auth {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 400px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.form-auth::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #7b2ff2, #5a1db8);
}

.form-auth h2 {
    color: #333;
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 30px;
    position: relative;
}

.form-auth h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: linear-gradient(135deg, #7b2ff2, #5a1db8);
    border-radius: 2px;
}

.form-auth input[type="text"],
.form-auth input[type="email"],
.form-auth input[type="password"],
.form-auth textarea {
    width: 100%;
    padding: 15px 20px;
    margin-bottom: 20px;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
    font-family: inherit;
    position: relative;
}

/* Password field container */
.form-auth .password-field-container {
    margin-bottom: 5px;
}

/* Password toggle button */
.form-auth .password-toggle {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 0;
    font-size: 16px;
    margin-bottom: 15px;
    text-align: left;
    width: auto;
    display: inline-block;
}

.form-auth .password-toggle:hover {
    color: #7b2ff2;
}

/* Remove extra padding from password field */
.form-auth input[type="password"] {
    padding: 15px 20px;
}

.form-auth input[type="text"]:focus,
.form-auth input[type="email"]:focus,
.form-auth input[type="password"]:focus,
.form-auth textarea:focus {
    outline: none;
    border-color: #7b2ff2;
    background: white;
    box-shadow: 0 0 0 3px rgba(123, 47, 242, 0.1);
    transform: translateY(-2px);
}

.form-auth textarea {
    resize: vertical;
    min-height: 80px;
}

.form-auth button[type="submit"] {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #7b2ff2, #5a1db8);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.form-auth button[type="submit"]:hover {
    background: linear-gradient(135deg, #5a1db8, #4a1a9e);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(123, 47, 242, 0.3);
}

.form-auth button[type="submit"]:active {
    transform: translateY(0);
}

.form-auth p {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 0;
}

.form-auth a {
    color: #7b2ff2;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.form-auth a:hover {
    color: #5a1db8;
    text-decoration: underline;
}

.error {
    background: #fee;
    color: #c33;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #c33;
    font-size: 0.9rem;
}

.success {
    background: #efe;
    color: #3c3;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #3c3;
    font-size: 0.9rem;
}

/* Loading state */
.form-auth button[type="submit"].loading {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.form-auth button[type="submit"].loading::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 8px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Form validation styles */
.form-auth input.invalid {
    border-color: #dc3545;
    background: #fff5f5;
}

.form-auth input.valid {
    border-color: #28a745;
    background: #f8fff9;
}

.form-auth .validation-message {
    font-size: 0.8rem;
    margin-top: -15px;
    margin-bottom: 15px;
    text-align: left;
}

.form-auth .validation-message.error {
    color: #dc3545;
    background: none;
    border: none;
    padding: 0;
}

.form-auth .validation-message.success {
    color: #28a745;
    background: none;
    border: none;
    padding: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .page-login-wrapper {
        padding: 15px;
    }
    
    .form-auth {
        padding: 30px 25px;
    }
    
    .form-auth h2 {
        font-size: 1.8rem;
    }
    
    .form-auth input[type="text"],
    .form-auth input[type="email"],
    .form-auth input[type="password"],
    .form-auth textarea {
        padding: 12px 15px;
        font-size: 0.95rem;
    }
    
    .form-auth input[type="password"] {
        padding: 12px 15px;
    }
    
    .form-auth .password-toggle {
        font-size: 14px;
    }
    
    .form-auth button[type="submit"] {
        padding: 12px;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .page-login-wrapper {
        padding: 10px;
    }
    
    .form-auth {
        padding: 25px 20px;
    }
    
    .form-auth h2 {
        font-size: 1.6rem;
        margin-bottom: 25px;
    }
    
    .form-auth input[type="text"],
    .form-auth input[type="email"],
    .form-auth input[type="password"],
    .form-auth textarea {
        padding: 10px 12px;
        font-size: 0.9rem;
        margin-bottom: 15px;
    }
    
    .form-auth input[type="password"] {
        padding: 10px 12px;
    }
    
    .form-auth .password-toggle {
        font-size: 13px;
    }
    
    .form-auth button[type="submit"] {
        padding: 10px;
        font-size: 0.95rem;
    }
    
    .form-auth p {
        font-size: 0.9rem;
    }
} 