﻿
:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --secondary-color: #10b981;
    --text-color: #1f2937;
    --text-light: #6b7280;
    --text-lighter: #9ca3af;
    --background: #f9fafb;
    --error: #dc2626;
    --surface: #ffffff;
    --border: #d1d5db;
    --border-focus: #93c5fd;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

body {
    background-color: var(--background);
    color: var(--text-color);
    line-height: 1.6;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.container {
    width: 100%;
    max-width: 550px;
    margin: 0 auto;
    background-color: var(--surface);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.header {
    text-align: center;
    padding: 28px 0;
    background-color: rebeccapurple;
    color: white;
    position: relative;
}

.logo-container {
    width: 80px;
    height: 80px;
    background-color: white;
    border-radius: 50%;
    margin: 0 auto 15px;
    display: flex;
    justify-content: center;
    align-items: center;
}

    .logo-container img {
        max-width: 60px;
        max-height: 60px;
    }

.header h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
}

.header p {
    margin: 5px 0 0;
    font-size: 0.7rem;
    opacity: 0.9;
}

.form-container {
    padding: 28px 32px;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

    .form-row .form-group {
        flex: 1;
        margin-bottom: 0;
    }

.form-group {
    margin-bottom: 20px;
    position: relative;
}

label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 6px;
}

.input-icon-container {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-lighter);
}

input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    background-color: #f9fafb;
}

.icon-input {
    padding-left: 40px;
}

input:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
    background-color: white;
}

input::placeholder {
    color: var(--text-lighter);
}

.text-danger {
    color: var(--error);
    font-size: 0.8rem;
    margin-top: 5px;
    display: block;
    min-height: 16px;
}

button {
    display: block;
    width: 100%;
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
    font-size: 1.3rem;
    padding: 14px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-top: 30px;
    position: relative;
    overflow: hidden;
}

    button:hover {
        background-color: var(--primary-dark);
    }

    button:disabled {
        background-color: var(--border-focus);
        cursor: not-allowed;
    }

.success-message {
    text-align: center;
    padding: 40px 24px;
}

.success-icon {
    width: 80px;
    height: 80px;
    background-color: #ecfdf5;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 24px;
}

    .success-icon svg {
        color: var(--secondary-color);
        width: 40px;
        height: 40px;
    }

.success-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-color);
}

.success-text {
    color: var(--text-light);
    font-size: 1.1rem;
}

.form-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 0.9rem;
    color: var(--text-light);
}

    .form-footer a {
        color: var(--primary-color);
        text-decoration: none;
        font-weight: 500;
    }

        .form-footer a:hover {
            text-decoration: underline;
        }

@media (max-width: 640px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .form-container {
        padding: 24px 20px;
    }

    .container {
        max-width: 100%;
    }
}

/* Password strength indicator */
.password-strength {
    height: 4px;
    width: 100%;
    margin-top: 8px;
    background-color: #e5e7eb;
    border-radius: 2px;
    overflow: hidden;
}

.password-strength-bar {
    height: 100%;
    width: 0;
    transition: width 0.3s, background-color 0.3s;
}

.strength-weak {
    background-color: #ef4444;
    width: 25%;
}

.strength-fair {
    background-color: #f59e0b;
    width: 50%;
}

.strength-good {
    background-color: #10b981;
    width: 75%;
}

.strength-strong {
    background-color: #047857;
    width: 100%;
}

/* Button loading state */
.button-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
    position: absolute;
    top: calc(50% - 10px);
    left: calc(50% + 50px);
    opacity: 0;
    transition: opacity 0.2s;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading .button-text {
    opacity: 0.5;
}

.loading .button-loading {
    opacity: 1;
}


