<script>
// Hide navbar to match designs 

if (!AJS.params.remoteUserKey.length) {
	$("#rw_theme_header").addClass("anon-hidden");
}
</script>

<style>
#rw_theme_header.anon-hidden {
	display: none !important;
}
.program-link-container {
    margin: 30px 0px;
    font-size: 16px;
    color: #0A6F7A !important;
} 
.program-link-container p, .program-link-container p a {
    color: #0A6F7A !important;
}
.program-link-container p a {
    font-weight: bold !important;
	text-decoration: underline;
}

</style>


<link rel="stylesheet" href="https://gsvlabs-confluence-files.s3.us-west-2.amazonaws.com/stylesheets/MS+SBA/signup.css">
<style>
*{
	font-weight: normal!important;
}
div.signContainer > span {
	position: relative;
}
.login-link{
	text-align: left!important;
}
#login{
	padding: 30px 65px!important;
}
 div.bigImageContainer{
    background-size: cover!important;
    background-position: right!important;
} 



.learn-more-section{
	left: 0!important;
	right: 20%!important;
}

div.signContainer > span {
    width: 100%;
}
div.formContainer {
	width: 100%;
}
.conditions .conditions-message {
    font-size: 14px;
    font-weight: 600;
	line-height: 1.6;
}
input#checkbox {
	margin-top: 5px;
}
.conditions {
	margin-bottom: 15px !important;
}

 .conditions .conditions-message a{
	text-decoration: underline;
}
    .learn-more-section a{
	color: #101010!important;
	border-color: #101010!important;
}

body #main-content .form-buttons input#signupButton{
 	background-color: #187ABA33 !important;
	color: #187ABA !important;
	border: 1px solid #187ABA !important;
	font-weight: bold !important;
}

.signContainer{
	flex-direction: row-reverse!important;
}
body .custom-section-container .conf-macro div.bigImageContainer{
	/*background: url("https://dwmysgmxkr93k.cloudfront.net/images/MS+Strategy+Challenge/strategy_challenge_banner_long.png") !important;*/
	background: transparent !important;
	background-size: cover!important;
	box-shadow: none!important;
	width: 100%;
}
.learn-more-section{
	top: 500px!important;
	bottom: 0!important;
	background: none!important;
}

.learn-more-section *{
	color: #101010!important;
}

body,.rw_content{
	background-color: var(--secondary-color)!important;
}
 div.bigImageContainer{
	right: unset!important;
} 
.conditions .conditions-message a {
    color: #187ABA !important;
    font-weight: bold !important;
    text-transform: capitalize;
}
</style>


<style> 

#rw_theme_header {
	background: white !important;
} 
.welcome-message {
  color: #0A6F7A !important;
}
.rw_content, #rw_wrapper {
	background-color: #0A6F7A !important;
}


.form-buttons #loginButton, .custom-section-container .learn-more-section a.external-link {
	color: #187ABA !important;
    border: 1px solid #187ABA !important;
    background: #187ABA33 !important;
}
.custom-section-container .learn-more-section a.external-link {
	background: #FFFFFF !important; 
} 
#login-container #forgot-pass-container a, #login-container #login-form-bottom a {
    color: #187ABA !important;
} 
.learn-more-section p {
    color: white !important;
} 

#login-container #os_username, #login-container #os_password {
    border: 1px solid #767676;
    border-radius: 4px;
    box-shadow: none;
    padding: 0px 15px;
}
form[name='signupform'] {
	word-break: break-word;
}
form[name='signupform'] label {
    color: #767676 !important;
}

</style>





<script>
window.location.replace("/display/MSSCH");
</script>







<div id="login">
    <p class="login-link"><a href="/display/MSSCA/Login">Already have an account? <span style="color: #187ABA !important; text-decoration: underline; font-weight: bold !important;">Sign in</span></a></p>
</div>




<div class="learn-more-section">
    <p>Now in its fifteenth year, the Strategy Challenge is Morgan Stanley’s annual signature pro bono initiative. Selected nonprofits based in the New York Metro area are matched with a team of select Morgan Stanley employees to address an important strategic question over the course of the ten-week program.</p>
<a href="https://www.morganstanley.com/about-us/giving-back/strategy-challenge-nonprofit-program" style="font-weight:bold;">Learn More</a>
</div>




<style>
#deadline-passed-signup {
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-size: 16px;
    background-color: var(--main-background);
    margin-bottom: 100px;
    padding: 20px;
    margin-top: 10px;
}
#deadline-passed-signup h4 {
    font-size: 18px;
    font-weight: bold !important;
}



.custom-section-container .learn-more-section a.external-link {
    background: #fff!important;
    border: 2px solid #187ABA !important;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1)!important;
	color: #187ABA !important;
	font-weight: bold !important;
}
#main-content{
	position: relative;
}
.bannerImg{
	position: absolute;
	top: 100px;
	width: 100%;
	height: 400px;
	object-fit: cover;
	object-position: right;
	z-index: -1;
}
.custom-section-container .conf-macro div.bigImageContainer.deadline-passed {
	background: url("https://dwmysgmxkr93k.cloudfront.net/images/MS+Strategy+Challenge/strategy_challenge_banner_long.png") !important;
	background-position: center !important;
	width: 100%;
}
.bigImageContainer.deadline-passed .learn-more-section {
	display: none !important;
}

</style>

<script>
// const END_DATE_TIME = Date.parse("12/05/2022 17:00:00 EST");
const END_DATE_TIME = Date.parse("12/05/2023 11:59:59 EST");
const DEADLINE_PASSED_STATE_VAR = END_DATE_TIME < Date.now();

const handleDeadlinePassedState = () => {
	$("form[name='signupform']").html(`<div id='deadline-passed-signup'><h4>The deadline for the Morgan Stanley Strategy Challenge has passed.</h4> <p>Please contact us at <a href='mailto:morganstanleystrategychallenge@theonevalley.com' style='color:#187ABA !important; font-weight: bold !important;'>morganstanleystrategychallenge@theonevalley.com</a> if you have any questions.</p></div>`);
	$(".custom-section-container .conf-macro div.bigImageContainer").addClass("deadline-passed");
	$(".learn-more-section").hide();
}

if (DEADLINE_PASSED_STATE_VAR == true) {
	handleDeadlinePassedState();
}

$('.conditions-message')[0].innerHTML = $('.conditions-message')[0].innerHTML.replace("Innovation Awards", "Strategy Challenge");
$(".signContainer .conditions .external-link").attr("target", "_blank"); 

window.addEventListener('load', ()=>{
 $('#main-content').append(`<img src='https://dwmysgmxkr93k.cloudfront.net/images/MS+Strategy+Challenge/strategy_challenge_banner_long.png' class='bannerImg'>`);
 $(".signContainer .conditions .external-link").attr("target", "_blank");
})
  </script>