body {
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
	margin: 0;
	padding: 0;
	background: linear-gradient(135deg, #211d44 0%, #1e1e3a 50%, #2d1b69 100%);
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
}

.tabs-container {
	display: flex;
	background: linear-gradient(135deg, #7c3aed1a, #a855f71a);
	border-radius: 20px 20px 0 0;
}

.tab {
	flex: 1;
	text-align: center;
	padding: 20px 0;
	cursor: pointer;
	background: #211d44;
	color: #ffffffc4;
	font-weight: 500;
	transition: all 0.3s ease;
	border-bottom: 3px solid transparent;
}

.tab:first-child {
	border-radius: 20px 0 0 0;
}

.tab:last-child {
	border-radius: 0 20px 0 0;
}

.tab:hover {
	background: rgba(255, 255, 255, 0.3);
	color: #333;
}

.tab.active {
	background:#7c3aed1a;
	color: #ffffff;
	border-bottom: 1px solid #ffffff;
	font-weight: 600;
	transform: scale(1.02);
}

.form-container {
	background: linear-gradient(135deg, #7c3aed1a, #a855f71a);
	padding: 1px 40px 40px 40px;
	border-radius: 0;
	box-shadow: none;
}

form {
	display: none;
	opacity: 0;
	transform: translateX(30px);
	transition: all 0.4s ease-in-out;
}

form.active {
	display: block;
	opacity: 1;
	transform: translateX(0);
	animation: slideInForm 0.4s ease-out;
}

@keyframes slideInForm {
	from { /*the range of motion for the animation*/
		opacity: 0;
		transform: translateX(30px);
	}
	to {
		opacity: 1;
		transform: translateX(0);
	}
}

form h2 {
	text-align: center;
	color: #ffffff;
	margin-bottom: 30px;
	font-weight: 600;
	font-size: 28px;
}

form input {
	width: 100%;
	padding: 15px;
	margin-bottom: 20px;
	border: 2px solid #e1e5e9;
	border-radius: 10px;
	font-size: 16px;
	transition: all 0.3s ease;
	box-sizing: border-box;
}

form input:focus {
	outline: none;
	border-color: #667eea;
	box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.name-container {
	display: flex;
	justify-content: space-between;
	gap: 5px;
}

form label {
	display: block;
	margin-bottom: 8px;
	color: #ffffffaf;
	font-weight: 500;
}

form button {
	width: 100%;
	padding: 15px;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: white;
	border: none;
	border-radius: 10px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
	margin-top: 10px;
}

form button:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

/* Flash Messages */
.flash-messages {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    max-width: 400px;
    width: 100%;
}

.flash-message {
    margin-bottom: 10px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    animation: slideInRight 0.3s ease-out;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.flash-content {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    gap: 12px;
    position: relative;
}

.flash-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.flash-text {
    flex: 1;
    font-weight: 500;
    font-size: 0.95rem;
    line-height: 1.4;
}

.flash-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: inherit;
    opacity: 0.7;
    transition: opacity 0.2s ease;
    padding: 0;
    margin: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.flash-close:hover {
    opacity: 1;
}

/* Flash Message Types */
.flash-success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.9), rgba(5, 150, 105, 0.9));
    color: #ffffff;
    border-left: 4px solid #10b981;
}

.flash-error, .flash-danger {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.9), rgba(220, 38, 38, 0.9));
    color: #ffffff;
    border-left: 4px solid #ef4444;
}

.flash-info {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.9), rgba(37, 99, 235, 0.9));
    color: #ffffff;
    border-left: 4px solid #3b82f6;
}

.flash-warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.9), rgba(217, 119, 6, 0.9));
    color: #ffffff;
    border-left: 4px solid #f59e0b;
}

/* Animation */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.flash-message.flash-dismissing {
    animation: slideOutRight 0.3s ease-in forwards;
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .flash-messages {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .flash-content {
        padding: 12px 16px;
    }
    
    .flash-text {
        font-size: 0.9rem;
    }
}

.container{
	width: 400px;
	margin: 0 auto;
	border-radius: 20px;
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	overflow: hidden;
	animation: slideIn 0.6s ease-out;
}

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

@media (prefers-color-scheme: dark){
    body{
        background: radial-gradient( ellipse at top, rgb(44, 12, 70) 50%, rgb(20, 20, 20) 100%);
    }
}

/* Forgot Password Link Styling */
.forgot-password-link {
	text-align: center;
	margin-top: 1em;
}

.forgot-password-link a {
	color: #a855f7;
	text-decoration: none;
	font-size: 14px;
	font-weight: 500;
	transition: all 0.3s ease;
	display: inline-block;
	padding: 8px 16px;
	border-radius: 8px;
}

.forgot-password-link a:hover {
	color: #7c3aed;
	background: rgba(168, 85, 247, 0.1);
	text-decoration: underline;
	transform: translateY(-1px);
}

.password-requirements {
    margin-top: 5px;
    font-size: 12px;
}

.requirement {
    margin: 2px 0;
    transition: color 0.3s ease;
}

.requirement.valid {
    color: #22c55e;
}

.requirement.invalid {
    color: #ef4444;
}

.requirement.valid::before {
    content: "✓ ";
}

.requirement.invalid::before {
    content: "✗ ";
}
