@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

:root{
    --bg: #fff;
    --text: #111;
    --muted: #9ca3af;
    --error: #e11d48;
    --success: #16a34a;

    --bar-bg: #e5e7eb;
    --bar-fill: #4caf50;
    --input-border: #d1d5db;
}

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body{
    font-family: 'Inter', sans-serif;
    background-color: var(--bg); /* Set background to white */
    color: var(--text); /* Set text color to black */
    min-height: 100vh;
}

.container{
    max-width: 420px;
    border: 2px solid var(--text);
    border-radius: 12px;
    padding: 32px 28px;
    margin: 20px auto;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

#profile-form{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.field{
    display: block;
}

label{
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
}

input{
    display: block;
    width: 100%;
    padding: 10px 12px;
    font-size: 16px;
    border: 1px solid var(--input-border);
    margin-bottom: 6px;
    border-radius: 8px;
}

input:focus{
    outline: 1px solid var(--text);
    border-color: var(--text);
    transition: all 0.3s ease;
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.6);
}

#update-btn{
    display: block;
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
    font-weight: 600;
    color: var(--bg);
    background-color: var(--text);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Hover effect for the button */
#update-btn:hover{
    background-color: var(--muted);
    color: var(--text);
    border: 2px solid var(--text);
}

/* Error message styling */
.error{
    color: var(--error);
    font-size: 13px;
    line-height: 1.2;
    display: none;
    opacity: 0;
    transform: translateY(-5px);
    transition: all 0.3s ease;
}

.error.active{
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.progress-container{
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
    /*border: 1px solid red;*/
}

.progress-bar{
    flex: 1;
    background-color: var(--bar-bg);
    height: 12px;
    border-radius: 999px;
    overflow: hidden;
}

.progress{
    background-color: var(--bar-fill);
    height: 100%;
    width: 0%;
    border-radius: 10px;
    transition: width 0.4s ease, background-color 0.4s ease;
}

.progress-text{
    font-size: 14px;
    color: #374151;
    white-space: nowrap;
}

.show-password{
    position: relative;
}

.show-password button{
    position: absolute;
    right: 10px;
    top: 36px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 15px;
}

.show-password button:focus{
    outline: none;
}

.btn:disabled{
    background-color: var(--bar-bg);
    color: var(--text);
    cursor: not-allowed;
}

#success-message{
    display: none;
    opacity: 0;
    color: var(--success);
    font-weight: bold;
    margin-top: 8px;
    transform: scale(0.95);
    transition: all 0.4s ease;
}

#success-message.active{
    display: block;
    opacity: 1;
    transform: scale(1);
}
