﻿@charset "utf-8";
		/* --- font --- */
		* {
			box-sizing: border-box;
			margin: 0;
			padding: 0;
			font-family: "Segoe UI", "Microsoft JhengHei", "微軟正黑體", sans-serif;
		}

		body, html {
			height: 100%;
			width: 100%;
			overflow-x: hidden;
		}


		/* --- bg (Responsive Full Screen) --- */
		.background-container {
			background-image: url('../images/bg.jpg'); 
			background-size: cover;
			background-position: center;
			background-repeat: no-repeat;
			background-attachment: fixed;
			width: 100%;
			min-height: 100vh;
			display: flex;
			align-items: center;
			justify-content: center;
			position: relative;
		}

		/* --- bg overlay --- */
		.overlay {
			position: absolute;
			top: 0;
			left: 0;
			width: 100%;
			height: 100%;
			background: linear-gradient(135deg, #453ca0e6 0%, #d17fe8e6 100%);
			z-index: 1;
		}

		/* --- main content --- */
		.main-content {
			position: relative;
			z-index: 2;
			width: 95%;
			max-width: 1165px; 
			display: flex;
			flex-direction: row;
			align-items: center;
			justify-content: space-between;
		}

		.info-section {
			flex: 1;
			color: white;
			padding-right: 40px;
		}

		.info-section h1 {
			font-size: 2.4rem;
			margin-bottom: 25px;
			font-weight: 600;
			text-shadow: 0 2px 4px rgba(0,0,0,0.2);
		}

		.duo-box {
			display: flex;
			align-items: flex-start;
			gap: 15px;
			max-width: 558px;
		}

		.duo-logo {
			width: 67px;
			height: 67px;
			flex-shrink: 0;
			overflow: hidden;
		}

		.duo-text {
			font-size: 1rem;
			line-height: 1.4;
			text-align: justify;
		}

		.duo-text span {
			color: #ffae00;
			font-weight: bold;
		}

		.duo-text a {
			color: #ffae00;
			text-decoration: underline;
			transition: all 0.3s ease;
		}

		.duo-text a:hover {
			color: #ffffff;
			text-shadow: 0 0 8px rgba(255,255,255,0.5);
		}

		/* --- right containter - login --- */
		.login-card {
			background: rgba(255, 255, 255, 0.95);
			padding: 50px 45px;
			border-radius: 40px;
			width: 100%;
			max-width: 520px; 
			box-shadow: 0 20px 40px rgba(0,0,0,0.25);
			color: #333;
			text-align: center;
		}

		.cuhk-logo {
			width: 100%;
			max-width: 320px;
			margin-bottom: 35px;
		}

		.input-group {
			position: relative;
			margin-bottom: 20px;
		}

		.input-group input {
			width: 100%;
			padding: 15px 15px 15px 50px;
			border: 1px solid #ddd;
			border-radius: 30px;
			font-size: 1.1rem;
			outline: none;
			transition: border 0.3s ease;
		}

		/*.input-group input:focus {
			border-color: #453ca0;
		}

		.input-group::before {
			content: '👤';
			position: absolute;
			left: 18px;
			top: 50%;
			transform: translateY(-50%);
			font-size: 1.2rem;
			opacity: 0.5;
		}

		.input-group.password::before {
			content: '🔒';
		}*/

		.input-group::before {
			font-family: "Font Awesome 6 Free";
			font-weight: 900; 

			content: '\f007'; /* icon Unicode */
			position: absolute;
			left: 18px;
			top: 50%;
			transform: translateY(-50%);
			font-size: 1.1rem;
			color: #888;
			transition: color 0.3s;
		}

		.input-group.password::before {
			content: '\f023'; /* lock icon Unicode */
		}

		/* when the user input，Icon's color changed */
		.input-group input:focus + ::before {
			color: #453ca0;
		}

		.forgot-pwd {
			display: block;
			text-align: left;
			font-size: 0.95rem;
			color: #666;
			margin: -10px 0 25px 0px;
			text-decoration: none;
			font-style: italic;
			transition: color 0.3s ease;
		}

		.forgot-pwd:hover {
			color: #9142A0;
			text-decoration: underline;
		}

		.login-btn {
			width: 100%;
			padding: 15px;
			background-color: #9142A0;
			color: white;
			border: none;
			border-radius: 35px;
			font-size: 1.2rem;
			font-weight: bold;
			cursor: pointer;
			transition: transform 0.2s ease, background 0.3s ease;
		}


		.login-btn:hover {
			background-color: #722cbf;
			transform: translateY(-2px);
		}

		/* --- right card footer --- */
		.card-footer {
			margin-top: 10px;
		}

		.footer-links {
			display: flex;
			justify-content: space-between;
			margin-bottom: 15px; /* margin between divider */
			padding: 0 5px;
		}

		.footer-links a {
			text-decoration: none;
			color: #555;
			font-size: 1rem;
			transition: color 0.3s ease;
		}

		.footer-links a:hover {
			color: #9142A0;
			text-decoration: underline;
		}

		.divider {
			border-top: 1px solid #eee;
			width: 100%;
			margin-bottom: 20px; /* margin between cads logo */
		}

		.cads-logo {
			font-size: 0.8rem;
			color: #999;
		}

		/* --- responsive --- */
		@media (max-width: 1100px) {
			
			.main-content {
				flex-direction: column;
				text-align: center;
				gap: 40px;
			}

			/*  info-section same width with login-card in ipad/mobile size */
			.info-section {
				padding-right: 0;
				width: 100%;
				max-width: 520px; /* same width with login-card */
				margin: 0 auto;  /* center */
			}

			.info-section h1 {
				font-size: 2.2rem;
			}

			.duo-box {
				margin: 0 auto;
				text-align: left; 
			}
		}

		@media (max-width: 550px) {
			.info-section, .login-card {
				max-width: 90%;
			}

			.login-card {
				padding: 35px 20px;
			}

			.info-section h1 {
				font-size: 1.8rem;
			}
		}
