@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
    --primary-color: #2563eb;
    --secondary-color: #4f46e5;
    --accent-color: #06b6d4;
    --background-color: #0f172a;
    --card-background: rgba(255, 255, 255, 0.05);
    --text-color: #ffffff;
    --text-light: rgba(255, 255, 255, 0.7);
    --shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --gradient-1: linear-gradient(135deg, #2563eb, #4f46e5);
    --gradient-2: linear-gradient(45deg, #06b6d4, #3b82f6);
    --error-color: #ef4444;
    --success-color: #22c55e;
}

body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    background: var(--background-color);
    background-image: 
        radial-gradient(circle at 0% 0%, rgba(79, 70, 229, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 100% 100%, rgba(6, 182, 212, 0.15) 0%, transparent 50%),
        linear-gradient(45deg, rgba(37, 99, 235, 0.05) 0%, transparent 100%);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.signup-form {
    background: var(--card-background);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.signup-form::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.signup-form h1 {
    text-align: center;
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.signup-form h1 img {
    height: 60px;
    width: auto;
    object-fit: contain;
    margin-right: 0.75rem;
}

.subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.input-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-weight: 500;
}

input, .password-container {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    font-size: 1rem;
    transition: var(--transition);
    box-sizing: border-box;
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-color);
}

input:focus, .password-container:focus-within {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
    background-color: rgba(255, 255, 255, 0.08);
}

.password-container {
    position: relative;
    display: flex;
    align-items: center;
    padding: 0;
}

.password-container input {
    flex: 1;
    border: none;
    padding: 0.8rem;
    padding-right: 2.5rem;
    background-color: transparent;
}

.toggle-password {
    position: absolute;
    right: 0.8rem;
    cursor: pointer;
    color: var(--text-light);
    transition: var(--transition);
    background: none;
    border: none;
    padding: 0;
}

.toggle-password:hover {
    color: var(--primary-color);
}

.btn-signup {
    width: 100%;
    padding: 0.8rem;
    background: var(--gradient-1);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-signup:hover {
    background: var(--gradient-2);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.login-link {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.9rem;
}

.login-link a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.login-link a:hover {
    color: var(--secondary-color);
}

.profile-picture-container {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.profile-picture-preview {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
}

.profile-picture-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

.default-avatar {
    font-size: 3rem;
    color: var(--text-light);
}

.profile-picture-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.profile-picture-preview:hover .profile-picture-overlay {
    opacity: 1;
}

.profile-picture-overlay i {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.profile-picture-overlay span {
    color: white;
    font-size: 0.8rem;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    display: none;
}

.spinner {
    border-color: rgba(255, 255, 255, 0.1);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-overlay p {
    color: var(--text-color);
    margin-top: 1rem;
}

.password-strength-meter {
    height: 5px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.password-strength-meter::before {
    content: '';
    display: block;
    height: 100%;
    transition: width 0.3s ease, background-color 0.3s ease;
}

.password-strength-text {
    font-size: 0.8rem;
    margin-top: 5px;
    text-align: right;
    font-weight: 500;
    transition: color 0.3s ease;
}

.very-weak::before { background-color: #ef4444; }
.weak::before { background-color: #f59e0b; }
.medium::before { background-color: #fbbf24; }
.strong::before { background-color: #34d399; }
.very-strong::before { background-color: #10b981; }

.very-weak .password-strength-text { color: #ef4444; }
.weak .password-strength-text { color: #f59e0b; }
.medium .password-strength-text { color: #fbbf24; }
.strong .password-strength-text { color: #34d399; }
.very-strong .password-strength-text { color: #10b981; }

.password-criteria {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 15px;
    font-size: 0.9rem;
    margin-top: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.password-criteria h4 {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 1rem;
    color: var(--text-color);
    font-weight: 600;
}

.password-criteria ul {
    list-style-type: none;
    padding-left: 0;
    margin: 0;
}

.password-criteria li {
    margin-bottom: 8px;
    color: var(--text-light);
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
}

.password-criteria li i {
    margin-right: 10px;
    font-size: 14px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    transition: all 0.3s ease;
}

.password-criteria li.valid {
    color: var(--success-color);
}

.password-criteria li.valid i {
    background-color: var(--success-color);
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }
    
    .signup-form {
        padding: 1.5rem;
    }
    
    h1 {
        font-size: 1.8rem;
    }

    .btn-signup {
        padding: 0.7rem;
    }
}

/* Notification styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 5px;
    color: white;
    font-weight: bold;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translateY(-20px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.notification.show {
    opacity: 1;
    transform: translateY(0);
}

.notification.success {
    background-color: rgba(34, 197, 94, 0.9);
}

.notification.error {
    background-color: rgba(239, 68, 68, 0.9);
}

.notification.info {
    background-color: rgba(6, 182, 212, 0.9);
}

/* Error message styling */
.error-message {
    display: none;
    background-color: rgba(239, 68, 68, 0.1);
    color: var(--error-color);
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 15px;
    text-align: center;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.error-message.show {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Password criteria styling */
.password-criteria {
    display: none; /* Hidden by default */
}

.password-criteria.show {
    display: block;
}

/* Hovering message styles */
.hovering-message {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-100%);
    background-color: rgba(239, 68, 68, 0.1);
    color: var(--error-color);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 5px;
    padding: 10px 20px;
    font-size: 0.9rem;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.hovering-message.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.hovering-message.error {
    background-color: rgba(239, 68, 68, 0.1);
    color: var(--error-color);
    border-color: rgba(239, 68, 68, 0.2);
}

.hovering-message.success {
    background-color: rgba(34, 197, 94, 0.1);
    color: var(--success-color);
    border-color: rgba(34, 197, 94, 0.2);
}
