@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    height: 100vh;
    overflow: hidden;
}

.background {
    position: relative;
    width: 100%;
    height: 100vh;
    background-color: #F5F5DC;
    display: flex;
    align-items: center;
    justify-content: center;
}

.waves-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background-image: url('/static/images/waves.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.form-container {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.form-island {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 30px;
    width: 500px;
    max-width: 90vw;
    height: auto;
    overflow-y: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    animation: fadeInUp 0.8s ease-out;
}

.form-island:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.form-title {
    color: #2d2d2d;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    text-align: left;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
}

.description {
    margin-bottom: 30px;
}

.description-text {
     color: #2d2d2d;
     font-size: 15px;
     line-height: 1.5;
     text-align: left !important;
     opacity: 0.8;
 }

.forgot-password-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-group {
    position: relative;
    margin-bottom: 5px;
}

.form-input {
    width: 100%;
    padding: 12px 0;
    background: transparent;
    border: none;
    border-bottom: 2px solid rgba(45, 45, 45, 0.2);
    font-size: 15px;
    color: #2d2d2d;
    outline: none;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-input::placeholder {
    color: rgba(45, 45, 45, 0.5);
    transition: all 0.3s ease;
}

.form-input:focus {
    border-bottom-color: #2d2d2d;
}

.form-input:focus::placeholder {
    opacity: 0;
    transform: translateY(-10px);
}

.input-underline {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #2d2d2d;
    transition: width 0.3s ease;
}

.form-input:focus + .input-underline {
    width: 100%;
}

.message-container {
    min-height: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: -5px 0;
}

.message {
    padding: 10px 15px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    text-align: center;
    animation: slideIn 0.3s ease-out;
}

.message.success {
    background: rgba(46, 204, 113, 0.15);
    color: #27ae60;
    border: 1px solid rgba(46, 204, 113, 0.3);
}

.message.error {
    background: rgba(231, 76, 60, 0.15);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.3);
}

.message.info {
    background: rgba(52, 152, 219, 0.15);
    color: #3498db;
    border: 1px solid rgba(52, 152, 219, 0.3);
}

.send-button {
    background: #2d2d2d;
    color: white;
    border: 2px solid transparent;
    border-radius: 18px;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 5px;
}

.send-button:hover:not(:disabled) {
    background: transparent;
    color: #2d2d2d;
    border: 2px solid #2d2d2d;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(45, 45, 45, 0.2);
}

.send-button:disabled {
    background: rgba(45, 45, 45, 0.3);
    color: rgba(255, 255, 255, 0.6);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.back-container {
    display: flex;
    justify-content: center;
    margin-top: -5px;
}

.back-link {
    color: rgba(45, 45, 45, 0.8);
    font-size: 13px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.back-link:hover {
    color: #2d2d2d;
    text-decoration: underline;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive design */
@media (max-width: 480px) {
    .form-island {
        padding: 30px 20px;
        width: 95vw;
    }
    
    .form-title {
        font-size: 28px;
        margin-bottom: 20px;
    }
    
    .forgot-password-form {
        gap: 20px;
    }
    
    .description-text {
        font-size: 13px;
    }
}
