* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background: url('pic.png') top right/contain no-repeat fixed;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    margin: 0;
}


/* ===== Main Container ===== */
.container {
    background: #fff;
    width: 100%;
    max-width: 400px;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: -20px;
}

form {
    margin: 0;
}

.form-title {
    font-size: 1.3rem;
    font-weight: 500;
    text-align: center;
    padding: 0 0 1rem 0;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

/* ===== Input Groups ===== */
.input-group {
    padding: 0.8rem 0;
    position: relative;
}

.input-group i {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    font-size: 1rem;
    z-index: 2;
}

input {
    color: #2c3e50;
    width: 100%;
    background-color: transparent;
    border: none;
    border-bottom: 1px solid #dee2e6;
    padding: 0.8rem 0 0.8rem 2rem;
    font-size: 14px;
    transition: all 0.3s ease;
}

input:focus {
    background-color: transparent;
    outline: none;
    border-bottom: 2px solid #9d5248;
}

input::placeholder {
    color: transparent;
}

label {
    color: #6c757d;
    position: absolute;
    left: 2rem;
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.3s ease;
    font-size: 14px;
    pointer-events: none;
    background: white;
    padding: 0 4px;
}

input:focus ~ label,
input:not(:placeholder-shown) ~ label {
    top: 0;
    font-size: 12px;
    color: #9d5248;
    font-weight: 500;
}

/* ===== Links & Recovery ===== */
.recover {
    text-align: right;
    font-size: 0.9rem;
    margin: 1rem 0;
}

.recover a {
    text-decoration: none;
    color: #9d5248;
    font-weight: 500;
    transition: color 0.3s ease;
}

.recover a:hover {
    color: #7d4239;
    text-decoration: underline;
}

/* ===== Buttons ===== */
.btn {
    font-size: 0.95rem;
    padding: 12px 0;
    border-radius: 8px;
    outline: none;
    border: none;
    width: 100%;
    background: #9d5248;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    margin-top: 0.5rem;
}

.btn:hover {
    background: #7d4239;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(73, 188, 133, 0.3);
}

/* ===== Divider ===== */
.or {
    font-size: 0.9rem;
    margin: 1.5rem 0;
    text-align: center;
    color: #6c757d;
    position: relative;
}

.or::before,
.or::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 30%;
    height: 1px;
    background: #dee2e6;
}

.or::before {
    left: 0;
}

.or::after {
    right: 0;
}

/* ===== Links Section ===== */
.links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    font-size: 0.9rem;
}

.links p {
    color: #6c757d;
    margin: 0;
}

button {
    color: #9d5248;
    border: none;
    background-color: transparent;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 6px;
}

button:hover {
    color: #7d4239;
    background: rgba(73, 188, 133, 0.1);
    text-decoration: none;
}

/* ===== Messages ===== */
#error-message {
    display: block;
    color: #dc3545;
    font-size: 13px;
    margin: 1rem 0;
    padding: 12px;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    text-align: left;
    position: relative;
    padding-left: 40px;
    line-height: 1.4;
}

#error-message i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #dc3545;
}

#success-message {
    display: block;
    color: #28a745;
    font-size: 13px;
    margin: 1rem 0;
    padding: 12px;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 8px;
    text-align: left;
    position: relative;
    padding-left: 40px;
    line-height: 1.4;
}

#success-message i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #28a745;
}

/* ===== Desktop Enhancements ===== */
@media (min-width: 768px) {
    body {
        padding: 40px;
    }
    
    .container {
        padding: 2rem;
        max-width: 420px;
    }
    
    .form-title {
        font-size: 1.4rem;
    }
    
    input {
        font-size: 15px;
    }
    
    .btn {
        font-size: 1rem;
        padding: 14px 0;
    }
}

/* ===== Mobile Optimizations ===== */
@media (max-width: 480px) {
    body {
        padding: 15px;
        justify-content: center;
        padding-top: 20px;
    }
    
    .container {
        padding: 1.25rem;
        max-width: 100%;
    }

    .form-title {
        font-size: 1.2rem;
        padding-bottom: 0.8rem;
    }
    
    .input-group {
        padding: 0.6rem 0;
    }
    
    input {
        font-size: 13px;
        padding: 0.7rem 0 0.7rem 1.8rem;
    }
    
    label {
        font-size: 13px;
        left: 1.8rem;
    }
    
    input:focus ~ label,
    input:not(:placeholder-shown) ~ label {
        font-size: 11px;
    }
    
    .input-group i {
        font-size: 0.9rem;
    }
    
    .btn {
        font-size: 0.9rem;
        padding: 10px 0;
    }
    
    .or {
        font-size: 0.85rem;
        margin: 1.25rem 0;
    }
    
    .links {
        font-size: 0.85rem;
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    button {
        font-size: 0.85rem;
        padding: 6px 12px;
    }
    
    #error-message,
    #success-message {
        font-size: 12px;
        padding: 10px 10px 10px 35px;
    }
}