/* ============================================
   ZARA-STYLE FORGET PASSWORD DESIGN
   ============================================ */

body {
    font-family: "Montserrat", sans-serif;
    background-color: var(--zara-white, #ffffff);
}

.modal {
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
    padding-top: 60px;
}

.modal-content {
    background-color: var(--zara-white, #ffffff);
    margin: 5% auto 15% auto;
    border: 1px solid var(--zara-border, #e5e5e5);
    width: 40%;
    max-width: 450px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    padding: 40px;
    box-sizing: border-box;
    position: relative;
}

/* Close Button */
.close {
    position: absolute;
    right: 25px;
    top: 15px;
    color: var(--zara-text, #1a1a1a);
    font-size: 30px;
    font-weight: 300;
    transition: opacity 0.3s ease;
    cursor: pointer;
    line-height: 1;
}

.close:hover,
.close:focus {
    opacity: 0.5;
}

/* Image/Header Container */
.imgcontainer {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

img.avatar {
    width: 120px;
    border-radius: 0;
}

/* Form Structure */
.container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

label {
    font-family: "Montserrat", sans-serif;
    font-size: 11px;
    color: var(--zara-text, #1a1a1a);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

input[type=text],
input[type=password],
input[type=email] {
    width: 100%;
    padding: 12px 0;
    border: none;
    border-bottom: 1px solid var(--zara-border, #ccc);
    background: transparent;
    color: var(--zara-text, #1a1a1a);
    font-family: "Montserrat", sans-serif;
    font-size: 14px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
    border-radius: 0;
}

input[type=text]:focus,
input[type=password]:focus,
input[type=email]:focus {
    outline: none;
    border-bottom-color: var(--zara-black, #000000);
}

/* Buttons */
.btn-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.btn {
    display: block;
    width: 100%;
    padding: 14px;
    text-align: center;
    border: none;
    cursor: pointer;
    font-family: "Montserrat", sans-serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    box-sizing: border-box;
    text-decoration: none;
}

.btn-black {
    background-color: var(--zara-black, #000000);
    color: var(--zara-white, #ffffff);
}

.btn-black:hover {
    background-color: #333;
}

.btn-white {
    background-color: var(--zara-white, #ffffff);
    color: var(--zara-black, #000000);
    border: 1px solid #000;
}

.btn-white:hover {
    background-color: #f5f5f5;
}

/* Legacy button support (for backwards compatibility) */
.submitbutton {
    background-color: var(--zara-black, #000000);
    color: var(--zara-white, #ffffff);
    padding: 14px;
    margin: 8px 0;
    border: none;
    cursor: pointer;
    width: 100%;
    font-family: "Montserrat", sans-serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 0;
    transition: opacity 0.3s ease;
}

.submitbutton:hover {
    opacity: 0.8;
}

.cancelbtn {
    width: auto;
    padding: 10px 18px;
    background-color: var(--zara-text-light, #666666);
    color: var(--zara-white, #ffffff);
    border: none;
    font-family: "Montserrat", sans-serif;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 0;
    transition: opacity 0.3s ease;
}

.cancelbtn:hover {
    opacity: 0.8;
}

/* Animations */
.animate {
    -webkit-animation: animatezoom 0.6s;
    animation: animatezoom 0.6s;
}

@-webkit-keyframes animatezoom {
    from { -webkit-transform: scale(0) } 
    to { -webkit-transform: scale(1) }
}
  
@keyframes animatezoom {
    from { transform: scale(0) } 
    to { transform: scale(1) }
}

/* Responsive */
@media screen and (max-width: 1050px) {
    .modal-content {
        width: 60%;
    }
}

@media screen and (max-width: 768px) {
    .modal-content {
        width: 90%;
        margin: 10% auto;
        padding: 20px;
    }
    
    img.avatar {
        width: 100px;
    }
}

@media screen and (max-width: 600px) {
    .modal-content {
        width: 90%;
        padding: 20px;
    }
}

@media screen and (max-width: 400px) {
    .modal-content {
        width: 90%;
        padding: 20px;
    }
    
    img.avatar {
        width: 80px;
    }
}
