:root {
    --primary: #6a5acd;
    --primary-light: #8677e0;
    --client: #4dabf7;
    --freelancer: #ff6b6b;
    --white: #ffffff;
    --gray-light: #f8f9fa;
    --gray: #6c757d;
    --dark: #343a40;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f5f5;
    background-image: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    background-color: var(--primary);
    padding: 1rem 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.navbar {
    background-color: #7a74da;
    overflow: hidden;
    top: 0;
    z-index: 100;
    width: 100%;
    text-align: center;
    padding: 1rem 0;
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    margin: 1rem auto;
    max-width: 1200px;
}

.navbar a {
    float: none;
    font-size: 1.5rem;
    display: inline-block;
    color: white;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    margin: 0 auto;
    transition: color 0.3s ease, transform 0.3s ease;
}

.navbar a:hover {
    color: #b6f5e5;
    transform: translateY(-2px);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.logo {
    width: 50px;
    -webkit-filter: drop-shadow(5px 5px 5px #222);
    filter: drop-shadow(5px 5px 5px #4e4157);
    filter: brightness(0) invert(1);
}

.login-container {
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 500px;
    overflow: hidden;
    margin-top: 2rem;
    padding: 0 3rem;
}

.login-header {
    background-color: var(--primary);
    color: var(--white);
    padding: 1.5rem;
    text-align: center;
    border-radius: 10px;
}

.login-header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.login-header p {
    font-size: 1rem;
    opacity: 0.9;
}

.login-body {
    padding: 2rem;
}

.form-title {
    font-size: 1.5rem;
    color: var(--dark);
    margin-bottom: 1.5rem;
    text-align: center;
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--dark);
}

.form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    padding-left: 2.5rem; /* Space for icon */
    border: 1px solid #ced4da;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(106, 90, 205, 0.25);
}

.form-icon {
    position: absolute;
    left: 15px;
    top: 2.75rem; /* Adjusted to align with input */
    color: var(--gray);
}

.btn {
    display: inline-block;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    user-select: none;
    border: 1px solid transparent;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 5px;
    transition: all 0.3s ease;
    cursor: pointer;
    margin-top: 1rem;
}

.btn-primary {
    color: var(--white);
    background-color: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover {
    background-color: var(--primary-light);
    border-color: var(--primary-light);
}

.btn-block {
    display: block;
    width: 100%;
}

.remember-me {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.remember-me input {
    margin-right: 0.5rem;
}

.text-center {
    text-align: center;
}

.form-footer {
    margin-top: 2rem;
    text-align: center;
    color: var(--gray);
}

.form-footer a {
    color: var(--primary);
    text-decoration: none;
}

.forgot-password {
    text-align: right;
    margin-top: 0.5rem;
}

.forgot-password a {
    color: var(--gray);
    font-size: 0.9rem;
    text-decoration: none;
}

.form-footer a:hover,
.forgot-password a:hover {
    text-decoration: underline;
}

/* Media query for mobile devices */
@media (max-width: 768px) {
    .login-container {
        margin: 1rem;
    }
}

/* Add to your existing CSS file */
.success-message {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.info-message {
    background: linear-gradient(135deg, #2196F3, #1976D2);
    color: white;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.3);
}

.resend-verification {
    text-align: center;
    margin: 15px 0;
    padding: 10px;
}

.resend-btn {
    background: transparent;
    border: 2px solid #667eea;
    color: #667eea;
    padding: 8px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.resend-btn:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.resend-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}