* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    height: 100vh;
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    display: flex;
    justify-content: center;
    align-items: center;
}

.container {
    background: white;
    padding: 30px;
    border-radius: 12px;
    width: 350px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    animation: fadeIn 1s ease;
}

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

h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

.input-group {
    margin-bottom: 15px;
    position: relative;
}

.input-group input {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #ccc;
    outline: none;
    font-size: 14px;
}

.input-group input:focus {
    border-color: #4facfe;
}

.toggle-password {
    position: absolute;
    right: 10px;
    top: 12px;
    cursor: pointer;
    font-size: 12px;
    color: #555;
}

button {
    width: 100%;
    padding: 12px;
    border: none;
    background: #4facfe;
    color: white;
    font-size: 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
}

button:hover {
    background: #00c6ff;
}

.error {
    color: red;
    font-size: 12px;
    margin-top: 5px;
}

.success {
    color: green;
    text-align: center;
    margin-top: 10px;
}
/* Add these styles to your existing register.css */
.input-group input.error-input {
    border-color: #e03c3c;
    background-color: #fff8f8;
}

.error {
    color: #e03c3c;
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

.success {
    color: #2ecc8a;
    font-size: 14px;
    margin-top: 10px;
    text-align: center;
    display: none;
}

.hint {
    color: #666;
    font-size: 11px;
    margin-top: 5px;
    display: block;
}

.password-strength {
    font-size: 11px;
    margin-top: 5px;
}

.password-strength.weak {
    color: #e03c3c;
}

.password-strength.medium {
    color: #f47c20;
}

.password-strength.strong {
    color: #2ecc8a;
}

.toggle-password {
    cursor: pointer;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: #1a2b6d;
    background: white;
    padding: 2px 5px;
    border-radius: 3px;
}

.input-group {
    position: relative;
    margin-bottom: 15px;
}

.input-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.input-group input:focus {
    outline: none;
    border-color: #1a2b6d;
}

button[type="submit"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.links {
    text-align: center;
    margin-top: 20px;
}

.links a {
    color: #1a2b6d;
    text-decoration: none;
    font-size: 14px;
}

.links a:hover {
    text-decoration: underline;
}   