/* Reset dan Base Styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

html, body {
    min-height: 100vh;
    background: linear-gradient(135deg, #ffe69c 0%, #ffd166 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* Form Container */
.form-container {
    background: #fffbe7;
    padding: 40px 35px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(231, 126, 34, 0.15);
    min-width: 380px;
    max-width: 420px;
    width: 100%;
    border: 2px solid #ffd166;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.form-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(231, 126, 34, 0.2);
}

.form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #04AA6D, #e67e22);
}

/* Title Styling */
.Login {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
    font-size: 2.2em;
    letter-spacing: 3px;
    font-weight: 800;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 15px;
}

.Login::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #04AA6D, #e67e22);
    border-radius: 2px;
}

/* Input Box Styling */
.input-box {
    position: relative;
    margin-bottom: 30px;
    width: 100%;
}

.input-box .input {
    font-size: 16px;
    outline: none;
    padding: 16px 20px;
    display: block;
    width: 100%;
    border-radius: 12px;
    border: 2px solid #e67e22;
    background: #fff;
    color: #333;
    transition: all 0.3s ease;
    font-weight: 500;
}

.input-box .input:focus {
    border-color: #04AA6D;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(4, 170, 109, 0.1);
    transform: translateY(-2px);
}

.input-box .input:valid {
    border-color: #04AA6D;
}

/* Label Styling */
.input-box .label {
    color: #666;
    font-size: 16px;
    font-weight: 500;
    position: absolute;
    pointer-events: none;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    background: transparent;
    transition: all 0.3s ease;
    padding: 0 5px;
}

.input-box .char {
    transition: all 0.3s ease;
    transition-delay: calc(var(--index) * 0.03s);
}

.input-box .input:focus ~ .label .char,
.input-box .input:valid ~ .label .char {
    transform: translateY(-32px) scale(0.9);
    color: #04AA6D;
    font-weight: 600;
    background: #fffbe7;
    padding: 0 5px;
}

/* Password Toggle Button */
.password-wrapper {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.toggle-password:hover {
    color: #04AA6D;
    background: rgba(4, 170, 109, 0.1);
}

/* Button Styling */
.button {
    display: block;
    width: 100%;
    background: linear-gradient(135deg, #04AA6D 0%, #039e5b 100%);
    color: white;
    padding: 16px 24px;
    border-radius: 12px;
    border: none;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
}

.button:hover {
    background: linear-gradient(135deg, #039e5b 0%, #028c4f 100%);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(4, 170, 109, 0.3);
}

.button:active {
    transform: translateY(-1px);
}

.button::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.button:hover::after {
    left: 100%;
}

/* Link Container */
.link-container {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(231, 126, 34, 0.2);
}

.link-container p {
    color: #666;
    font-size: 15px;
    font-weight: 500;
}

.link-container a {
    color: #04AA6D;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    position: relative;
}

.link-container a:hover {
    color: #e67e22;
    text-decoration: underline;
}

.link-container a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -2px;
    left: 0;
    background: #e67e22;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.link-container a:hover::after {
    transform: scaleX(1);
}

/* Remember Forgot Section */
.remember-forgot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 15px 0;
    font-size: 14px;
}

.remember-forgot label {
    display: flex;
    align-items: center;
    color: #666;
    cursor: pointer;
}

.remember-forgot input[type="checkbox"] {
    margin-right: 8px;
    accent-color: #04AA6D;
}

.remember-forgot a {
    color: #e67e22;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.remember-forgot a:hover {
    color: #04AA6D;
    text-decoration: underline;
}

/* Error Message */
.error-message {
    color: #ff4757;
    font-size: 14px;
    margin-top: 5px;
    display: none;
    font-weight: 500;
}

.input.error {
    border-color: #ff4757;
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Responsive Design */
@media (max-width: 480px) {
    .form-container {
        min-width: 300px;
        padding: 30px 25px;
    }
    
    .Login {
        font-size: 1.8em;
    }
    
    .input-box .input {
        padding: 14px 18px;
    }
    
    .button {
        padding: 14px 20px;
    }
}