/* /static/css/employee_signup.css */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
    --primary: #2563eb;
    --secondary: #f97316;
    --success: #10b981;
    --background: #0f172a;
    --card-bg: rgba(30, 41, 59, 0.8);
    --input-bg: rgba(51, 65, 85, 0.4);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    min-height: 100vh;
    background: var(--background);
    background-image: 
        radial-gradient(circle at 20% 30%, #3b82f680 0%, transparent 30%),
        radial-gradient(circle at 80% 70%, #f97316aa 0%, transparent 30%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: white;
}

.container {
    width: 100%;
    max-width: 450px;
    padding: 2rem;
}

h1 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(to right, #3b82f6, #f97316);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 700;
}

.subtitle {
    text-align: center;
    color: #94a3b8;
    margin-bottom: 2rem;
}

form {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: #e2e8f0;
    font-size: 0.9rem;
    font-weight: 500;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

/* Icon on the left (default) */
.input-wrapper i:not(.password-toggle) {
    position: absolute;
    left: 1rem;
    color: #64748b;
    transition: all 0.3s ease;
}

/* Password toggle icon (right side) */
.password-toggle {
    position: absolute;
    right: 1rem;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10; /* Ensure the toggle is clickable */
}

.password-toggle:hover {
    color: var(--secondary);
}

/* Active state for the toggle */
.password-toggle:active {
    transform: scale(0.95);
}

input {
    width: 100%;
    padding: 0.8rem 1rem 0.8rem 2.8rem;
    background: var(--input-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

/* Special padding for password fields to accommodate both icons */
input[type="password"],
input#password,
input#confirm_password {
    padding-right: 2.8rem;
}

input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.25);
}

/* Only affect the left icon when input is focused */
input:focus + i:not(.password-toggle) {
    color: var(--primary);
}

button {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(37, 99, 235, 0.25);
}

.links {
    text-align: center;
    margin-top: 1.5rem;
}

.links p {
    color: #94a3b8;
    margin: 0.5rem 0;
}

.links a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.links a:hover {
    color: var(--secondary);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.back-link i {
    font-size: 0.9rem;
}

/* Glowing effect on form hover */
form:hover {
    box-shadow: 0 0 50px rgba(59, 130, 246, 0.15);
}

/* Input placeholder styling */
input::placeholder {
    color: #64748b;
}

/* Success state for inputs */
input:valid {
    border-color: var(--success);
}

@media (max-width: 480px) {
    .container {
        padding: 1rem;
    }

    form {
        padding: 1.5rem;
    }

    h1 {
        font-size: 2rem;
    }

    input {
        font-size: 0.9rem;
    }
}

/* Alert styles */
.alert {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 4px;
}

.alert-success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}